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
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 22/22 | 22/22 | 22/22 | 22/22 | 22/22 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| If node is a host-including inclusive ancestor of parent, then throw a HierarchyRequestError DOMException. | PASS | PASS | PASS | PASS | PASS | — |
| If node is not a DocumentFragment, DocumentType, Element, Text, ProcessingInstruction, or Comment node, then throw a HierarchyRequestError DOMException. | PASS | PASS | PASS | PASS | PASS | — |
| If node is a Text node and parent is a document, then throw a HierarchyRequestError DOMException. | PASS | PASS | PASS | PASS | PASS | — |
| If node is a doctype and parent is not a document, then throw a HierarchyRequestError DOMException. | PASS | PASS | PASS | PASS | PASS | — |
| If node is a DocumentFragment with multiple elements and parent is a document, then throw a HierarchyRequestError DOMException. | PASS | PASS | PASS | PASS | PASS | — |
| If node is a DocumentFragment with an element and parent is a document with another element, then throw a HierarchyRequestError DOMException. | PASS | PASS | PASS | PASS | PASS | — |
| If node is an Element and parent is a document with another element, then throw a HierarchyRequestError DOMException. | PASS | PASS | PASS | PASS | PASS | — |
| If node is a doctype and parent is a document with another doctype, then throw a HierarchyRequestError DOMException. | PASS | PASS | PASS | PASS | PASS | — |
| Element.prepend() without any argument, on a parent having no child. | PASS | PASS | PASS | PASS | PASS | — |
| Element.prepend() with null as an argument, on a parent having no child. | PASS | PASS | PASS | PASS | PASS | — |
| Element.prepend() with undefined as an argument, on a parent having no child. | PASS | PASS | PASS | PASS | PASS | — |
| Element.prepend() with only text as an argument, on a parent having no child. | PASS | PASS | PASS | PASS | PASS | — |
| Element.prepend() with only one element as an argument, on a parent having no child. | PASS | PASS | PASS | PASS | PASS | — |
| Element.prepend() with null as an argument, on a parent having a child. | PASS | PASS | PASS | PASS | PASS | — |
| Element.prepend() with one element and text as argument, on a parent having a child. | PASS | PASS | PASS | PASS | PASS | — |
| DocumentFragment.prepend() without any argument, on a parent having no child. | PASS | PASS | PASS | PASS | PASS | — |
| DocumentFragment.prepend() with null as an argument, on a parent having no child. | PASS | PASS | PASS | PASS | PASS | — |
| DocumentFragment.prepend() with undefined as an argument, on a parent having no child. | PASS | PASS | PASS | PASS | PASS | — |
| DocumentFragment.prepend() with only text as an argument, on a parent having no child. | PASS | PASS | PASS | PASS | PASS | — |
| DocumentFragment.prepend() with only one element as an argument, on a parent having no child. | PASS | PASS | PASS | PASS | PASS | — |
| DocumentFragment.prepend() with null as an argument, on a parent having a child. | PASS | PASS | PASS | PASS | PASS | — |
| DocumentFragment.prepend() with one element and text as argument, on a parent having a child. | PASS | PASS | PASS | PASS | PASS | — |