ParentNode-replaceChildren.html
Details
- Test
/dom/nodes/ParentNode-replaceChildren.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | If node is a host-including inclusive ancestor of parent, then throw a HierarchyRequestError DOMException. |
| PASS | If node is not a DocumentFragment, DocumentType, Element, Text, ProcessingInstruction, or Comment node, then throw a HierarchyRequestError DOMException. |
| PASS | If node is a Text node and parent is a document, then throw a HierarchyRequestError DOMException. |
| PASS | If node is a doctype and parent is not a document, then throw a HierarchyRequestError DOMException. |
| PASS | If node is a DocumentFragment with multiple elements and parent is a document, then throw a HierarchyRequestError DOMException. |
| PASS | Element.replaceChildren() without any argument, on a parent having no child. |
| PASS | Element.replaceChildren() with null as an argument, on a parent having no child. |
| PASS | Element.replaceChildren() with undefined as an argument, on a parent having no child. |
| PASS | Element.replaceChildren() with only text as an argument, on a parent having no child. |
| PASS | Element.replaceChildren() with only one element as an argument, on a parent having no child. |
| PASS | Element.replaceChildren() without any argument, on a parent having a child. |
| PASS | Element.replaceChildren() with null as an argument, on a parent having a child. |
| PASS | Element.replaceChildren() with one element and text as argument, on a parent having a child. |
| PASS | Element.replaceChildren() should move nodes in the right order |
| PASS | DocumentFragment.replaceChildren() without any argument, on a parent having no child. |
| PASS | DocumentFragment.replaceChildren() with null as an argument, on a parent having no child. |
| PASS | DocumentFragment.replaceChildren() with undefined as an argument, on a parent having no child. |
| PASS | DocumentFragment.replaceChildren() with only text as an argument, on a parent having no child. |
| PASS | DocumentFragment.replaceChildren() with only one element as an argument, on a parent having no child. |
| PASS | DocumentFragment.replaceChildren() without any argument, on a parent having a child. |
| PASS | DocumentFragment.replaceChildren() with null as an argument, on a parent having a child. |
| PASS | DocumentFragment.replaceChildren() with one element and text as argument, on a parent having a child. |
| PASS | DocumentFragment.replaceChildren() should move nodes in the right order |
| FAIL | Document.replaceChildren() with an element, replacing an existing doctype and element. replaceChildren: Document can only have one Element child |
| FAIL | Document.replaceChildren() with a DocumentFragment containing a single element, replacing an existing doctype and element. replaceChildren: Document can only have one Element child |
| FAIL | Document.replaceChildren() with a doctype, replacing an existing doctype and element. replaceChildren: Document can only have one DocumentType child |
| PASS | Document.replaceChildren() without any argument, removing an existing doctype and element. |
| PASS | Document.replaceChildren() with two elements throws a HierarchyRequestError. |
| PASS | Document.replaceChildren() with text throws a HierarchyRequestError. |
| PASS | There should be a MutationRecord for the node removed from another parent node. |
| PASS | There should be MutationRecords for the nodes removed from another parent node. |