Skip to content

Commit

Permalink
Bug 1254956 - Implement Node.rootNode. r=Ms2ger,smaug
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: HeV3qnngbTx

--HG--
extra : rebase_source : b25172112a902a2dd4f9af2087a266baa7f8b797
  • Loading branch information
yrliou committed Mar 16, 2016
1 parent 2e624c1 commit 4967a99
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 38 deletions.
5 changes: 5 additions & 0 deletions dom/base/nsINode.h
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,11 @@ class nsINode : public mozilla::dom::EventTarget
*/
nsINode* SubtreeRoot() const;

nsINode* RootNode() const
{
return SubtreeRoot();
}

/**
* See nsIDOMEventTarget
*/
Expand Down
2 changes: 2 additions & 0 deletions dom/webidl/Node.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ interface Node : EventTarget {
[Pure]
readonly attribute Document? ownerDocument;
[Pure]
readonly attribute Node rootNode;
[Pure]
readonly attribute Node? parentNode;
[Pure]
readonly attribute Element? parentElement;
Expand Down
24 changes: 0 additions & 24 deletions testing/web-platform/meta/dom/interfaces.html.ini
Original file line number Diff line number Diff line change
Expand Up @@ -291,18 +291,6 @@
[DOMTokenList interface: calling supports(DOMString) on document.body.classList with too few arguments must throw TypeError]
expected: FAIL

[Node interface: attribute rootNode]
expected: FAIL

[Node interface: xmlDoc must inherit property "rootNode" with the proper type (16)]
expected: FAIL

[Node interface: document.createDocumentFragment() must inherit property "rootNode" with the proper type (16)]
expected: FAIL

[Node interface: document.doctype must inherit property "rootNode" with the proper type (16)]
expected: FAIL

[Element interface: element must inherit property "prepend" with the proper type (32)]
expected: FAIL

Expand All @@ -324,15 +312,3 @@
[Element interface: element must inherit property "replaceWith" with the proper type (42)]
expected: FAIL

[Node interface: element must inherit property "rootNode" with the proper type (16)]
expected: FAIL

[Node interface: document.createTextNode("abc") must inherit property "rootNode" with the proper type (16)]
expected: FAIL

[Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "rootNode" with the proper type (16)]
expected: FAIL

[Node interface: document.createComment("abc") must inherit property "rootNode" with the proper type (16)]
expected: FAIL

14 changes: 0 additions & 14 deletions testing/web-platform/meta/dom/nodes/rootNode.html.ini

This file was deleted.

0 comments on commit 4967a99

Please sign in to comment.