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 | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/dlls/mshtml/htmlnode.c b/dlls/mshtml/htmlnode.c index 3b5db6115f4..1b69928418a 100644 --- a/dlls/mshtml/htmlnode.c +++ b/dlls/mshtml/htmlnode.c @@ -1255,6 +1255,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_UNKNOWN} };
diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 546393a6e4a..b23dd200d7d 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -513,6 +513,7 @@ sync_test("elem_props", function() { test_exposed("clientTop", true); test_exposed("title", true); test_exposed("removeNode", true); + test_exposed("replaceNode", true); test_exposed("querySelectorAll", v >= 8); test_exposed("textContent", v >= 9); test_exposed("prefix", v >= 9); @@ -604,6 +605,7 @@ sync_test("textnode_props", function() { test_exposed("nodeValue", true); test_exposed("ownerDocument", true); test_exposed("removeNode", true); + test_exposed("replaceNode", true); test_exposed("compareDocumentPosition", v >= 9); test_exposed("isEqualNode", v >= 9); test_exposed("prefix", v >= 9); @@ -1204,6 +1206,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."); });
async_test("iframe_doc_mode", function() { @@ -3684,7 +3687,7 @@ sync_test("prototype props", function() { "DOCUMENT_POSITION_FOLLOWING", "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC", "DOCUMENT_POSITION_PRECEDING", "DOCUMENT_TYPE_NODE", "ELEMENT_NODE", "ENTITY_NODE", "ENTITY_REFERENCE_NODE", "NOTATION_NODE", "PROCESSING_INSTRUCTION_NODE", "TEXT_NODE", "hasAttributes", "normalize", - "replaceNode", "swapNode" + "swapNode" ]); check(StorageEvent, [ "initStorageEvent", "key", "newValue", "oldValue", "storageArea", "url" ]); check(UIEvent, [ "detail", "initUIEvent", "view" ], null, [ "deviceSessionId" ]);