From c16ef729db50209a626b743f5847a24dff5688a4 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 13 Sep 2017 12:52:40 +0200 Subject: [PATCH] mshtml: Expose IHTMLElement6 to scripts. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/htmlelem.c | 4 +++- dlls/mshtml/tests/documentmode.js | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c index d2afdf6f89c..782a632c307 100644 --- a/dlls/mshtml/htmlelem.c +++ b/dlls/mshtml/htmlelem.c @@ -5349,8 +5349,10 @@ 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) + if(mode >= COMPAT_MODE_IE9) { + dispex_info_add_interface(info, IHTMLElement6_tid, NULL); dispex_info_add_interface(info, IElementTraversal_tid, NULL); + } } static const tid_t HTMLElement_iface_tids[] = { diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 20b58828773..77f69930413 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -35,6 +35,9 @@ function test_elem_props() { test_exposed("textContent", v >= 9); test_exposed("prefix", v >= 9); test_exposed("firstElementChild", v >= 9); + test_exposed("onsubmit", v >= 9); + test_exposed("getElementsByClassName", v >= 9); + test_exposed("removeAttributeNS", v >= 9); next_test(); }