Correct the default value for Node#cloneNode's deep argument.

This commit is contained in:
Ms2ger 2015-08-13 12:12:45 +02:00
parent 8f55af1190
commit c007b66d97
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ interface Node : EventTarget {
attribute DOMString? textContent; attribute DOMString? textContent;
void normalize(); void normalize();
Node cloneNode(optional boolean deep = true); Node cloneNode(optional boolean deep = false);
boolean isEqualNode(Node? node); boolean isEqualNode(Node? node);
const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;

View file

@ -237,7 +237,7 @@ test(function() {
var html = document.implementation.createHTMLDocument("title"); var html = document.implementation.createHTMLDocument("title");
var copy = html.cloneNode(); var copy = html.cloneNode();
check_copy(html, copy, Document); check_copy(html, copy, Document);
assert_equals(html.title, copy.title); assert_equals(copy.title, "");
}, "implementation.createHTMLDocument"); }, "implementation.createHTMLDocument");
test(function() { test(function() {