ParentNode-replaceChildren.html

FAILExpected28 of 31 subtests pass544 ms

Details

Test
/dom/nodes/ParentNode-replaceChildren.html
Harness
OK

Subtests

StatusSubtestMessage
PASSIf node is a host-including inclusive ancestor of parent, then throw a HierarchyRequestError DOMException.
PASSIf node is not a DocumentFragment, DocumentType, Element, Text, ProcessingInstruction, or Comment node, then throw a HierarchyRequestError DOMException.
PASSIf node is a Text node and parent is a document, then throw a HierarchyRequestError DOMException.
PASSIf node is a doctype and parent is not a document, then throw a HierarchyRequestError DOMException.
PASSIf node is a DocumentFragment with multiple elements and parent is a document, then throw a HierarchyRequestError DOMException.
PASSElement.replaceChildren() without any argument, on a parent having no child.
PASSElement.replaceChildren() with null as an argument, on a parent having no child.
PASSElement.replaceChildren() with undefined as an argument, on a parent having no child.
PASSElement.replaceChildren() with only text as an argument, on a parent having no child.
PASSElement.replaceChildren() with only one element as an argument, on a parent having no child.
PASSElement.replaceChildren() without any argument, on a parent having a child.
PASSElement.replaceChildren() with null as an argument, on a parent having a child.
PASSElement.replaceChildren() with one element and text as argument, on a parent having a child.
PASSElement.replaceChildren() should move nodes in the right order
PASSDocumentFragment.replaceChildren() without any argument, on a parent having no child.
PASSDocumentFragment.replaceChildren() with null as an argument, on a parent having no child.
PASSDocumentFragment.replaceChildren() with undefined as an argument, on a parent having no child.
PASSDocumentFragment.replaceChildren() with only text as an argument, on a parent having no child.
PASSDocumentFragment.replaceChildren() with only one element as an argument, on a parent having no child.
PASSDocumentFragment.replaceChildren() without any argument, on a parent having a child.
PASSDocumentFragment.replaceChildren() with null as an argument, on a parent having a child.
PASSDocumentFragment.replaceChildren() with one element and text as argument, on a parent having a child.
PASSDocumentFragment.replaceChildren() should move nodes in the right order
FAILDocument.replaceChildren() with an element, replacing an existing doctype and element.
replaceChildren: Document can only have one Element child
replaceChildren: Document can only have one Element child
FAILDocument.replaceChildren() with a DocumentFragment containing a single element, replacing an existing doctype and element.
replaceChildren: Document can only have one Element child
replaceChildren: Document can only have one Element child
FAILDocument.replaceChildren() with a doctype, replacing an existing doctype and element.
replaceChildren: Document can only have one DocumentType child
replaceChildren: Document can only have one DocumentType child
PASSDocument.replaceChildren() without any argument, removing an existing doctype and element.
PASSDocument.replaceChildren() with two elements throws a HierarchyRequestError.
PASSDocument.replaceChildren() with text throws a HierarchyRequestError.
PASSThere should be a MutationRecord for the node removed from another parent node.
PASSThere should be MutationRecords for the nodes removed from another parent node.