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:
parent
59028126f0
commit
188a1d7d8f
|
@ -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[] = {
|
||||
|
|
|
@ -127,6 +127,7 @@ typedef struct EventTarget EventTarget;
|
|||
XDIID(HTMLElementEvents2) \
|
||||
XIID(IDocumentSelector) \
|
||||
XIID(IElementSelector) \
|
||||
XIID(IElementTraversal) \
|
||||
XIID(IHTMLAnchorElement) \
|
||||
XIID(IHTMLAreaElement) \
|
||||
XIID(IHTMLAttributeCollection) \
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue