diff options
author | Moonchild <moonchild@palemoon.org> | 2020-06-10 01:19:37 +0000 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-06-13 11:50:06 +0200 |
commit | 0e0feed5daa8751b04bda7b4caac3854995cb0c8 (patch) | |
tree | e5292ae865b705e729ca30290820638975cd8df7 /dom/webidl/Node.webidl | |
parent | 7f238b1cf9775b43b119eb9a5e2ea0fe79fa5add (diff) | |
download | UXP-0e0feed5daa8751b04bda7b4caac3854995cb0c8.tar UXP-0e0feed5daa8751b04bda7b4caac3854995cb0c8.tar.gz UXP-0e0feed5daa8751b04bda7b4caac3854995cb0c8.tar.lz UXP-0e0feed5daa8751b04bda7b4caac3854995cb0c8.tar.xz UXP-0e0feed5daa8751b04bda7b4caac3854995cb0c8.zip |
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 7d18899b0..0a14e3624 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; +}; + |