summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-06-10 01:19:37 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-06-13 11:50:06 +0200
commit0e0feed5daa8751b04bda7b4caac3854995cb0c8 (patch)
treee5292ae865b705e729ca30290820638975cd8df7 /testing
parent7f238b1cf9775b43b119eb9a5e2ea0fe79fa5add (diff)
downloadUXP-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 'testing')
-rw-r--r--testing/web-platform/meta/dom/historical.html.ini4
-rw-r--r--testing/web-platform/meta/dom/interfaces.html.ini57
-rw-r--r--testing/web-platform/meta/dom/nodes/rootNode.html.ini15
3 files changed, 0 insertions, 76 deletions
diff --git a/testing/web-platform/meta/dom/historical.html.ini b/testing/web-platform/meta/dom/historical.html.ini
index 6894d4868..42c737606 100644
--- a/testing/web-platform/meta/dom/historical.html.ini
+++ b/testing/web-platform/meta/dom/historical.html.ini
@@ -12,7 +12,3 @@
expected: FAIL
bug: 660660
- [Node member must be nuked: rootNode]
- disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1303802
- bug: 1269155
-
diff --git a/testing/web-platform/meta/dom/interfaces.html.ini b/testing/web-platform/meta/dom/interfaces.html.ini
index 2a0c6da04..71833f090 100644
--- a/testing/web-platform/meta/dom/interfaces.html.ini
+++ b/testing/web-platform/meta/dom/interfaces.html.ini
@@ -1,6 +1,5 @@
[interfaces.html]
type: testharness
- prefs: [dom.node.rootNode.enabled:true]
[Document interface: attribute origin]
expected: FAIL
@@ -48,60 +47,4 @@
[Text interface: document.createTextNode("abc") must inherit property "assignedSlot" with the proper type (2)]
expected: FAIL
- [Node interface: operation getRootNode(GetRootNodeOptions)]
- expected: FAIL
-
- [Node interface: new Document() must inherit property "getRootNode" with the proper type (17)]
- expected: FAIL
-
- [Node interface: calling getRootNode(GetRootNodeOptions) on new Document() with too few arguments must throw TypeError]
- expected: FAIL
-
- [Node interface: xmlDoc must inherit property "getRootNode" with the proper type (17)]
- expected: FAIL
-
- [Node interface: calling getRootNode(GetRootNodeOptions) on xmlDoc with too few arguments must throw TypeError]
- expected: FAIL
-
- [Node interface: document.doctype must inherit property "getRootNode" with the proper type (17)]
- expected: FAIL
-
- [Node interface: calling getRootNode(GetRootNodeOptions) on document.doctype with too few arguments must throw TypeError]
- expected: FAIL
-
- [Node interface: document.createDocumentFragment() must inherit property "getRootNode" with the proper type (17)]
- expected: FAIL
-
- [Node interface: calling getRootNode(GetRootNodeOptions) on document.createDocumentFragment() with too few arguments must throw TypeError]
- expected: FAIL
-
- [Node interface: element must inherit property "getRootNode" with the proper type (17)]
- expected: FAIL
-
- [Node interface: calling getRootNode(GetRootNodeOptions) on element with too few arguments must throw TypeError]
- expected: FAIL
-
- [Node interface: document.querySelector("[id\]").attributes[0\] must inherit property "getRootNode" with the proper type (17)]
- expected: FAIL
-
- [Node interface: calling getRootNode(GetRootNodeOptions) on document.querySelector("[id\]").attributes[0\] with too few arguments must throw TypeError]
- expected: FAIL
-
- [Node interface: document.createTextNode("abc") must inherit property "getRootNode" with the proper type (17)]
- expected: FAIL
-
- [Node interface: calling getRootNode(GetRootNodeOptions) on document.createTextNode("abc") with too few arguments must throw TypeError]
- expected: FAIL
-
- [Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "getRootNode" with the proper type (17)]
- expected: FAIL
-
- [Node interface: calling getRootNode(GetRootNodeOptions) on xmlDoc.createProcessingInstruction("abc", "def") with too few arguments must throw TypeError]
- expected: FAIL
-
- [Node interface: document.createComment("abc") must inherit property "getRootNode" with the proper type (17)]
- expected: FAIL
-
- [Node interface: calling getRootNode(GetRootNodeOptions) on document.createComment("abc") with too few arguments must throw TypeError]
- expected: FAIL
diff --git a/testing/web-platform/meta/dom/nodes/rootNode.html.ini b/testing/web-platform/meta/dom/nodes/rootNode.html.ini
deleted file mode 100644
index 59533aebb..000000000
--- a/testing/web-platform/meta/dom/nodes/rootNode.html.ini
+++ /dev/null
@@ -1,15 +0,0 @@
-[rootNode.html]
- type: testharness
- prefs: [dom.node.rootNode.enabled:true]
- [getRootNode() must return the context object when it does not have any parent]
- expected: FAIL
-
- [getRootNode() must return the parent node of the context object when the context object has a single ancestor not in a document]
- expected: FAIL
-
- [getRootNode() must return the document when a node is in document]
- expected: FAIL
-
- [getRootNode() must return a document fragment when a node is in the fragment]
- expected: FAIL
-