ParentNode-prepend.html

PASSExpected22 of 22 subtests pass429 ms

Details

Test
/dom/nodes/ParentNode-prepend.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.
PASSIf node is a DocumentFragment with an element and parent is a document with another element, then throw a HierarchyRequestError DOMException.
PASSIf node is an Element and parent is a document with another element, then throw a HierarchyRequestError DOMException.
PASSIf node is a doctype and parent is a document with another doctype, then throw a HierarchyRequestError DOMException.
PASSElement.prepend() without any argument, on a parent having no child.
PASSElement.prepend() with null as an argument, on a parent having no child.
PASSElement.prepend() with undefined as an argument, on a parent having no child.
PASSElement.prepend() with only text as an argument, on a parent having no child.
PASSElement.prepend() with only one element as an argument, on a parent having no child.
PASSElement.prepend() with null as an argument, on a parent having a child.
PASSElement.prepend() with one element and text as argument, on a parent having a child.
PASSDocumentFragment.prepend() without any argument, on a parent having no child.
PASSDocumentFragment.prepend() with null as an argument, on a parent having no child.
PASSDocumentFragment.prepend() with undefined as an argument, on a parent having no child.
PASSDocumentFragment.prepend() with only text as an argument, on a parent having no child.
PASSDocumentFragment.prepend() with only one element as an argument, on a parent having no child.
PASSDocumentFragment.prepend() with null as an argument, on a parent having a child.
PASSDocumentFragment.prepend() with one element and text as argument, on a parent having a child.