aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/dom/webidls/Node.webidl2
-rw-r--r--tests/wpt/web-platform-tests/dom/nodes/Node-cloneNode.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webidls/Node.webidl b/components/script/dom/webidls/Node.webidl
index 3aa3d17e4d1..bb118820237 100644
--- a/components/script/dom/webidls/Node.webidl
+++ b/components/script/dom/webidls/Node.webidl
@@ -52,7 +52,7 @@ interface Node : EventTarget {
attribute DOMString? textContent;
void normalize();
- Node cloneNode(optional boolean deep = true);
+ Node cloneNode(optional boolean deep = false);
boolean isEqualNode(Node? node);
const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
diff --git a/tests/wpt/web-platform-tests/dom/nodes/Node-cloneNode.html b/tests/wpt/web-platform-tests/dom/nodes/Node-cloneNode.html
index fec456bb51f..a80f82cdc3d 100644
--- a/tests/wpt/web-platform-tests/dom/nodes/Node-cloneNode.html
+++ b/tests/wpt/web-platform-tests/dom/nodes/Node-cloneNode.html
@@ -237,7 +237,7 @@ test(function() {
var html = document.implementation.createHTMLDocument("title");
var copy = html.cloneNode();
check_copy(html, copy, Document);
- assert_equals(html.title, copy.title);
+ assert_equals(copy.title, "");
}, "implementation.createHTMLDocument");
test(function() {