mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implements Node::isSameNode
Fixes #10746 Adapted the tests from dom/nodes/Node-isEqualNode.html
This commit is contained in:
parent
305c283602
commit
ed42cc72a4
5 changed files with 116 additions and 52 deletions
|
@ -58,6 +58,8 @@ interface Node : EventTarget {
|
|||
Node cloneNode(optional boolean deep = false);
|
||||
[Pure]
|
||||
boolean isEqualNode(Node? node);
|
||||
[Pure]
|
||||
boolean isSameNode(Node? otherNode); // historical alias of ===
|
||||
|
||||
const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
|
||||
const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue