Commit 2936f113 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Expose IHTMLDocument7 interface to scripts.

parent 8546c6a5
...@@ -4939,6 +4939,9 @@ static void HTMLDocumentNode_init_dispex_info(dispex_data_t *info, compat_mode_t ...@@ -4939,6 +4939,9 @@ static void HTMLDocumentNode_init_dispex_info(dispex_data_t *info, compat_mode_t
{ {
HTMLDOMNode_init_dispex_info(info, mode); HTMLDOMNode_init_dispex_info(info, mode);
if(mode >= COMPAT_MODE_IE9)
dispex_info_add_interface(info, IHTMLDocument7_tid, NULL);
/* Depending on compatibility version, we add interfaces in different order /* Depending on compatibility version, we add interfaces in different order
* so that the right getElementById implementation is used. */ * so that the right getElementById implementation is used. */
if(mode < COMPAT_MODE_IE8) { if(mode < COMPAT_MODE_IE8) {
......
...@@ -146,6 +146,7 @@ typedef struct EventTarget EventTarget; ...@@ -146,6 +146,7 @@ typedef struct EventTarget EventTarget;
XIID(IHTMLDocument4) \ XIID(IHTMLDocument4) \
XIID(IHTMLDocument5) \ XIID(IHTMLDocument5) \
XIID(IHTMLDocument6) \ XIID(IHTMLDocument6) \
XIID(IHTMLDocument7) \
XIID(IHTMLDOMAttribute) \ XIID(IHTMLDOMAttribute) \
XIID(IHTMLDOMAttribute2) \ XIID(IHTMLDOMAttribute2) \
XIID(IHTMLDOMChildrenCollection) \ XIID(IHTMLDOMChildrenCollection) \
......
...@@ -51,6 +51,11 @@ function test_doc_props() { ...@@ -51,6 +51,11 @@ function test_doc_props() {
test_exposed("textContent", v >= 9); test_exposed("textContent", v >= 9);
test_exposed("prefix", v >= 9); test_exposed("prefix", v >= 9);
test_exposed("defaultView", v >= 9);
test_exposed("head", v >= 9);
test_exposed("parentWindow", true);
if(v >= 9) ok(document.defaultView === document.parentWindow, "defaultView != parentWindow");
next_test(); next_test();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment