mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
commit
42d74324e2
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue