Click here to download the Blitz Browser!

WPT

wpt / dom / nodes / ParentNode-prepend.html

Spec: DOM ↗

Runs: Chrome 155.0.8039.0 (wpt@a4fcd77aa, 2026-09-03) | Firefox 157.0a1 (wpt@cc4d45aa0, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-a9df8 (wpt@9b4cabf6d, 2026-09-03) | Servo Servo 0.6 (wpt@7e3d005d7, 2026-09-03) | Blitz 188486089 (wpt@a95401e4e, 2026-09-02)

View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi

ChromeFirefoxSafariLadybirdServoBlitz
Total22/2222/2222/2222/2222/22NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
If node is a host-including inclusive ancestor of parent, then throw a HierarchyRequestError DOMException.PASSPASSPASSPASSPASS
If node is not a DocumentFragment, DocumentType, Element, Text, ProcessingInstruction, or Comment node, then throw a HierarchyRequestError DOMException.PASSPASSPASSPASSPASS
If node is a Text node and parent is a document, then throw a HierarchyRequestError DOMException.PASSPASSPASSPASSPASS
If node is a doctype and parent is not a document, then throw a HierarchyRequestError DOMException.PASSPASSPASSPASSPASS
If node is a DocumentFragment with multiple elements and parent is a document, then throw a HierarchyRequestError DOMException.PASSPASSPASSPASSPASS
If node is a DocumentFragment with an element and parent is a document with another element, then throw a HierarchyRequestError DOMException.PASSPASSPASSPASSPASS
If node is an Element and parent is a document with another element, then throw a HierarchyRequestError DOMException.PASSPASSPASSPASSPASS
If node is a doctype and parent is a document with another doctype, then throw a HierarchyRequestError DOMException.PASSPASSPASSPASSPASS
Element.prepend() without any argument, on a parent having no child.PASSPASSPASSPASSPASS
Element.prepend() with null as an argument, on a parent having no child.PASSPASSPASSPASSPASS
Element.prepend() with undefined as an argument, on a parent having no child.PASSPASSPASSPASSPASS
Element.prepend() with only text as an argument, on a parent having no child.PASSPASSPASSPASSPASS
Element.prepend() with only one element as an argument, on a parent having no child.PASSPASSPASSPASSPASS
Element.prepend() with null as an argument, on a parent having a child.PASSPASSPASSPASSPASS
Element.prepend() with one element and text as argument, on a parent having a child.PASSPASSPASSPASSPASS
DocumentFragment.prepend() without any argument, on a parent having no child.PASSPASSPASSPASSPASS
DocumentFragment.prepend() with null as an argument, on a parent having no child.PASSPASSPASSPASSPASS
DocumentFragment.prepend() with undefined as an argument, on a parent having no child.PASSPASSPASSPASSPASS
DocumentFragment.prepend() with only text as an argument, on a parent having no child.PASSPASSPASSPASSPASS
DocumentFragment.prepend() with only one element as an argument, on a parent having no child.PASSPASSPASSPASSPASS
DocumentFragment.prepend() with null as an argument, on a parent having a child.PASSPASSPASSPASSPASS
DocumentFragment.prepend() with one element and text as argument, on a parent having a child.PASSPASSPASSPASSPASS