From: Gabriel Ivăncescu gabrielopcode@gmail.com
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/mshtml/htmltextnode.c | 13 +++++++------ dlls/mshtml/tests/documentmode.js | 1 + 2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/dlls/mshtml/htmltextnode.c b/dlls/mshtml/htmltextnode.c index f653faffcd7..635dbda667b 100644 --- a/dlls/mshtml/htmltextnode.c +++ b/dlls/mshtml/htmltextnode.c @@ -638,21 +638,22 @@ static const event_target_vtbl_t HTMLCommentElement_event_target_vtbl = {
static void Comment_init_dispex_info(dispex_data_t *info, compat_mode_t mode) { + static const dispex_hook_t ie9_hooks[] = { + {DISPID_IHTMLCOMMENTELEMENT_ATOMIC}, + {DISPID_UNKNOWN} + }; HTMLElement_init_dispex_info(info, mode); CharacterData_init_dispex_info(info, mode); + + dispex_info_add_interface(info, IHTMLCommentElement_tid, mode >= COMPAT_MODE_IE9 ? ie9_hooks : NULL); }
-static const tid_t Comment_iface_tids[] = { - HTMLELEMENT_TIDS, - IHTMLCommentElement_tid, - 0 -}; dispex_static_data_t Comment_dispex = { .id = PROT_Comment, .prototype_id = PROT_CharacterData, .vtbl = &HTMLCommentElement_event_target_vtbl.dispex_vtbl, .disp_tid = DispHTMLCommentElement_tid, - .iface_tids = Comment_iface_tids, + .iface_tids = HTMLElement_iface_tids, .init_info = Comment_init_dispex_info, };
diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index f89c155f532..f81db21b375 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -536,6 +536,7 @@ sync_test("elem_props", function() { if (v >= 9) test_exposed("spellcheck", v >= 10);
elem = document.createComment(""); + test_exposed("atomic", v < 9); test_exposed("data", true); test_exposed("length", true); test_exposed("text", true);