mshtml: Expose IElementTraversal interface to scripts.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2017-07-25 17:57:13 +02:00 committed by Alexandre Julliard
parent 59028126f0
commit 188a1d7d8f
3 changed files with 5 additions and 0 deletions

View File

@ -5288,6 +5288,9 @@ void HTMLElement_init_dispex_info(dispex_data_t *info, compat_mode_t mode)
if(mode >= COMPAT_MODE_IE8)
dispex_info_add_interface(info, IElementSelector_tid, NULL);
if(mode >= COMPAT_MODE_IE9)
dispex_info_add_interface(info, IElementTraversal_tid, NULL);
}
static const tid_t HTMLElement_iface_tids[] = {

View File

@ -127,6 +127,7 @@ typedef struct EventTarget EventTarget;
XDIID(HTMLElementEvents2) \
XIID(IDocumentSelector) \
XIID(IElementSelector) \
XIID(IElementTraversal) \
XIID(IHTMLAnchorElement) \
XIID(IHTMLAreaElement) \
XIID(IHTMLAttributeCollection) \

View File

@ -34,6 +34,7 @@ function test_elem_props() {
test_exposed("querySelectorAll", v >= 8);
test_exposed("textContent", v >= 9);
test_exposed("prefix", v >= 9);
test_exposed("firstElementChild", v >= 9);
next_test();
}