Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d631268f
Commit
d631268f
authored
Aug 24, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Properly expose IHTMLDocument6 interface to scripts.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f84d1f0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
htmldoc.c
dlls/mshtml/htmldoc.c
+16
-3
documentmode.js
dlls/mshtml/tests/documentmode.js
+16
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
d631268f
...
...
@@ -4887,19 +4887,32 @@ static const tid_t HTMLDocumentNode_iface_tids[] = {
IHTMLDOMNode_tid
,
IHTMLDOMNode2_tid
,
IHTMLDocument2_tid
,
IHTMLDocument3_tid
,
IHTMLDocument4_tid
,
IHTMLDocument5_tid
,
IHTMLDocument6_tid
,
IDocumentSelector_tid
,
0
};
void
HTMLDocumentNode_init_dispex_info
(
dispex_data_t
*
info
,
compat_mode_t
mode
)
{
HTMLDOMNode_init_dispex_info
(
info
,
mode
);
/* Depending on compatibility version, we add interfaces in different order
* so that the right getElementById implementation is used. */
if
(
mode
<
COMPAT_MODE_IE8
)
{
dispex_info_add_interface
(
info
,
IHTMLDocument3_tid
,
NULL
);
dispex_info_add_interface
(
info
,
IHTMLDocument6_tid
,
NULL
);
}
else
{
dispex_info_add_interface
(
info
,
IHTMLDocument6_tid
,
NULL
);
dispex_info_add_interface
(
info
,
IHTMLDocument3_tid
,
NULL
);
}
}
static
dispex_static_data_t
HTMLDocumentNode_dispex
=
{
&
HTMLDocumentNode_dispex_vtbl
,
DispHTMLDocument_tid
,
HTMLDocumentNode_iface_tids
,
HTMLD
OM
Node_init_dispex_info
HTMLD
ocument
Node_init_dispex_info
};
static
HTMLDocumentNode
*
alloc_doc_node
(
HTMLDocumentObj
*
doc_obj
,
HTMLInnerWindow
*
window
)
...
...
dlls/mshtml/tests/documentmode.js
View file @
d631268f
...
...
@@ -55,6 +55,21 @@ function test_doc_props() {
next_test
();
}
function
test_elem_by_id
()
{
document
.
body
.
innerHTML
=
'<form id="testid" name="testname"></form>'
;
var
id_elem
=
document
.
getElementById
(
"testid"
);
ok
(
id_elem
.
tagName
===
"FORM"
,
"id_elem.tagName = "
+
id_elem
.
tagName
);
var
name_elem
=
document
.
getElementById
(
"testname"
);
if
(
document
.
documentMode
<
8
)
ok
(
id_elem
===
name_elem
,
"id_elem != id_elem"
);
else
ok
(
name_elem
===
null
,
"name_elem != null"
);
next_test
();
}
function
test_doc_mode
()
{
compat_version
=
parseInt
(
document
.
location
.
search
.
substring
(
1
));
...
...
@@ -116,5 +131,6 @@ var tests = [
test_doc_mode
,
test_elem_props
,
test_doc_props
,
test_elem_by_id
,
test_conditional_comments
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment