mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Correct the default value for Node#cloneNode's deep argument.
This commit is contained in:
parent
8f55af1190
commit
c007b66d97
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