From: Gabriel Ivăncescu gabrielopcode@gmail.com
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/mshtml/htmlnode.c | 1 + dlls/mshtml/tests/documentmode.js | 3 +++ 2 files changed, 4 insertions(+)
diff --git a/dlls/mshtml/htmlnode.c b/dlls/mshtml/htmlnode.c index b4ad9d6861c..703bbd43262 100644 --- a/dlls/mshtml/htmlnode.c +++ b/dlls/mshtml/htmlnode.c @@ -1256,6 +1256,7 @@ void HTMLDOMNode_init_dispex_info(dispex_data_t *info, compat_mode_t mode) static const dispex_hook_t ie9_hooks[] = { {DISPID_IHTMLDOMNODE_REMOVENODE, NULL}, {DISPID_IHTMLDOMNODE_REPLACENODE, NULL}, + {DISPID_IHTMLDOMNODE_SWAPNODE, NULL}, {DISPID_UNKNOWN} };
diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 8d1720f75bd..49b8a0656fb 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -514,6 +514,7 @@ sync_test("elem_props", function() { test_exposed("title", true); test_exposed("removeNode", true); test_exposed("replaceNode", true); + test_exposed("swapNode", true); test_exposed("querySelectorAll", v >= 8); test_exposed("textContent", v >= 9); test_exposed("prefix", v >= 9); @@ -605,6 +606,7 @@ sync_test("textnode_props", function() { test_exposed("nodeValue", true); test_exposed("removeNode", true); test_exposed("replaceNode", true); + test_exposed("swapNode", true); test_exposed("compareDocumentPosition", v >= 9); test_exposed("isEqualNode", v >= 9); test_exposed("prefix", v >= 9); @@ -1206,6 +1208,7 @@ sync_test("doctype", function() { ok(doctype.name === "html", "doctype.name = " + doctype.name); ok(!("removeNode" in doctype), "removeNode found in doctype."); ok(!("replaceNode" in doctype), "replaceNode found in doctype."); + ok(!("swapNode" in doctype), "swapNode found in doctype."); });
async_test("iframe_doc_mode", function() {