From: Gabriel Ivăncescu gabrielopcode@gmail.com
It's already part of the prototype chain.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/mshtml/htmldoc.c | 6 ++++-- dlls/mshtml/tests/dom.js | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c index 13a383fded2..ef964297404 100644 --- a/dlls/mshtml/htmldoc.c +++ b/dlls/mshtml/htmldoc.c @@ -6009,8 +6009,10 @@ static void DocumentFragment_init_dispex_info(dispex_data_t *info, compat_mode_t if(mode < COMPAT_MODE_IE9) { HTMLDocumentNode_init_dispex_info(info, mode); dispex_info_add_interface(info, IHTMLDocument5_tid, NULL); - } else if(mode < COMPAT_MODE_IE11) { - dispex_info_add_dispids(info, IHTMLDocument3_tid, document3_dispids); + } else { + HTMLDOMNode_init_dispex_info(info, mode); + if(mode < COMPAT_MODE_IE11) + dispex_info_add_dispids(info, IHTMLDocument3_tid, document3_dispids); } }
diff --git a/dlls/mshtml/tests/dom.js b/dlls/mshtml/tests/dom.js index 180c56fbbfe..92c1deb64d3 100644 --- a/dlls/mshtml/tests/dom.js +++ b/dlls/mshtml/tests/dom.js @@ -405,6 +405,13 @@ sync_test("document_style_props", function() { ok(document.aLinkColor === "#deb8ad", "aLinkColor = " + document.aLinkColor); });
+sync_test("document_frag", function() { + var frag = document.createDocumentFragment() + + frag.textContent = "1234"; + ok(frag.textContent === "1234", "textContent = " + frag.textContent); +}); + sync_test("style_properties", function() { document.body.innerHTML = '<div>test</div><svg></svg>'; var elem = document.body.firstChild;