Auto merge of #7190 - Ms2ger:node-clone, r=jdm

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



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7190)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-13 13:51:06 -06:00
commit 42d74324e2
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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() {