Pass | If node is a host-including inclusive ancestor of parent, then throw a HierarchyRequestError DOMException. | Asserts runPass | assert_throws_dom("HierarchyRequestError", function "() => insert(doc.body, doc.body)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:19:5) | Pass | assert_throws_dom("HierarchyRequestError", function "() => insert(doc.body, doc.documentElement)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:20:5) |
|
Pass | If node is not a DocumentFragment, DocumentType, Element, Text, ProcessingInstruction, or Comment node, then throw a HierarchyRequestError DOMException. | Asserts runPass | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, doc2)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:27:5) |
|
Pass | If node is a Text node and parent is a document, then throw a HierarchyRequestError DOMException. | Asserts runPass | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, doc.createTextNode("text"))")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:33:5) |
|
Pass | If node is a doctype and parent is not a document, then throw a HierarchyRequestError DOMException. | Asserts runPass | assert_throws_dom("HierarchyRequestError", function "() => insert(doc.createElement("a"), doctype)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:40:5) |
|
Pass | If node is a DocumentFragment with multiple elements and parent is a document, then throw a HierarchyRequestError DOMException. | Asserts runPass | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, df)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:50:5) |
|
Pass | If node is a DocumentFragment with an element and parent is a document with another element, then throw a HierarchyRequestError DOMException. | Asserts runPass | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, df)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:58:5) |
|
Pass | If node is an Element and parent is a document with another element, then throw a HierarchyRequestError DOMException. | Asserts runPass | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, el)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:65:5) |
|
Pass | If node is a doctype and parent is a document with another doctype, then throw a HierarchyRequestError DOMException. | Asserts runPass | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, doctype)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:73:5) |
|
Pass | Element.prepend() without any argument, on a parent having no child. | Asserts runPass | assert_array_equals(object "[object NodeList]", [])
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:15:9) |
|
Pass | Element.prepend() with null as an argument, on a parent having no child. | Asserts runPass | assert_equals("null", "null")
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:21:9) |
|
Pass | Element.prepend() with undefined as an argument, on a parent having no child. | Asserts runPass | assert_equals("undefined", "undefined")
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:27:9) |
|
Pass | Element.prepend() with only text as an argument, on a parent having no child. | Asserts runPass | assert_equals("text", "text")
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:33:9) |
|
Pass | Element.prepend() with only one element as an argument, on a parent having no child. | Asserts runPass | assert_array_equals(object "[object NodeList]", [Element node <x></x>])
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:40:9) |
|
Pass | Element.prepend() with null as an argument, on a parent having a child. | Asserts runPass | assert_equals("null", "null")
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:48:9) | Pass | assert_equals(Element node <test></test>, Element node <test></test>)
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:49:9) |
|
Pass | Element.prepend() with one element and text as argument, on a parent having a child. | Asserts runPass | assert_equals(Element node <x></x>, Element node <x></x>)
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:58:9) | Pass | assert_equals("text", "text")
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:59:9) | Pass | assert_equals(Element node <test></test>, Element node <test></test>)
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:60:9) |
|
Pass | DocumentFragment.prepend() without any argument, on a parent having no child. | Asserts runPass | assert_array_equals(object "[object NodeList]", [])
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:15:9) |
|
Pass | DocumentFragment.prepend() with null as an argument, on a parent having no child. | Asserts runPass | assert_equals("null", "null")
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:21:9) |
|
Pass | DocumentFragment.prepend() with undefined as an argument, on a parent having no child. | Asserts runPass | assert_equals("undefined", "undefined")
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:27:9) |
|
Pass | DocumentFragment.prepend() with only text as an argument, on a parent having no child. | Asserts runPass | assert_equals("text", "text")
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:33:9) |
|
Pass | DocumentFragment.prepend() with only one element as an argument, on a parent having no child. | Asserts runPass | assert_array_equals(object "[object NodeList]", [Element node <x></x>])
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:40:9) |
|
Pass | DocumentFragment.prepend() with null as an argument, on a parent having a child. | Asserts runPass | assert_equals("null", "null")
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:48:9) | Pass | assert_equals(Element node <test></test>, Element node <test></test>)
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:49:9) |
|
Pass | DocumentFragment.prepend() with one element and text as argument, on a parent having a child. | Asserts runPass | assert_equals(Element node <x></x>, Element node <x></x>)
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:58:9) | Pass | assert_equals("text", "text")
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:59:9) | Pass | assert_equals(Element node <test></test>, Element node <test></test>)
at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:60:9) |
|