diff options
author | Moonchild <moonchild@palemoon.org> | 2020-06-10 01:19:37 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-06-10 01:19:37 +0000 |
commit | 8797b20746cd80c51cc56225f70ddea6c6b94f9d (patch) | |
tree | 5517d461c0c43f2927708c2c251fbba8e37dd757 /dom/webidl/Node.webidl | |
parent | 47db6b4b5e8ca41c93964e964238fe85bdd7e23b (diff) | |
download | uxp-8797b20746cd80c51cc56225f70ddea6c6b94f9d.tar.gz |
Issue #1585 - Replace node.rootNode with node.getRootNode()
This removes the (default disabled) node.rootNode readonly attribute
and replaces it with a node.getRootNode() function per WhatWG
spec discussion.
Based on work by John Dai <jdai@mozilla.com>
Diffstat (limited to 'dom/webidl/Node.webidl')
-rw-r--r-- | dom/webidl/Node.webidl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dom/webidl/Node.webidl b/dom/webidl/Node.webidl index 8b6dca788c..c9fb7e77e2 100644 --- a/dom/webidl/Node.webidl +++ b/dom/webidl/Node.webidl @@ -38,8 +38,8 @@ interface Node : EventTarget { readonly attribute boolean isConnected; [Pure] readonly attribute Document? ownerDocument; - [Pure, Pref="dom.node.rootNode.enabled"] - readonly attribute Node rootNode; + [Pure] + Node getRootNode(optional GetRootNodeOptions options); [Pure] readonly attribute Node? parentNode; [Pure] @@ -113,3 +113,8 @@ interface Node : EventTarget { readonly attribute AccessibleNode? accessibleNode; #endif }; + +dictionary GetRootNodeOptions { + boolean composed = false; +}; + |