From 48d31ea5ebe2a4901fcb542e1e48b6fd6b67d64c Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 7 Aug 2020 21:15:52 +0000 Subject: Pref and disable getRootNode() This is apparently used for fallback selection and if available it is "assumed" Shadow DOM is also available, while this is a utility function. Webcompat is a nightmare sometimes. --- dom/webidl/Node.webidl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dom/webidl') diff --git a/dom/webidl/Node.webidl b/dom/webidl/Node.webidl index 0a14e3624..128efcb50 100644 --- a/dom/webidl/Node.webidl +++ b/dom/webidl/Node.webidl @@ -38,7 +38,7 @@ interface Node : EventTarget { readonly attribute boolean isConnected; [Pure] readonly attribute Document? ownerDocument; - [Pure] + [Pure, Pref="dom.getRootNode.enabled"] Node getRootNode(optional GetRootNodeOptions options); [Pure] readonly attribute Node? parentNode; -- cgit v1.2.3