mshtml: Expose IHTMLDocument7 interface to scripts.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-09-12 13:15:23 +02:00 committed by Alexandre Julliard
parent 8546c6a55b
commit 2936f11351
3 changed files with 9 additions and 0 deletions

View File

@ -4939,6 +4939,9 @@ static void HTMLDocumentNode_init_dispex_info(dispex_data_t *info, compat_mode_t
{
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
* so that the right getElementById implementation is used. */
if(mode < COMPAT_MODE_IE8) {

View File

@ -146,6 +146,7 @@ typedef struct EventTarget EventTarget;
XIID(IHTMLDocument4) \
XIID(IHTMLDocument5) \
XIID(IHTMLDocument6) \
XIID(IHTMLDocument7) \
XIID(IHTMLDOMAttribute) \
XIID(IHTMLDOMAttribute2) \
XIID(IHTMLDOMChildrenCollection) \

View File

@ -51,6 +51,11 @@ function test_doc_props() {
test_exposed("textContent", 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();
}