kitesurf · WPT

FAIL
expected FAIL · 632 ms
▶ run in kitesurf
Test
/dom/nodes/Node-replaceChild.html
Actual
FAIL
Expected
FAIL
Unexpected
no
Duration
632 ms
Harness
OK
Counts
Reason
Run
https://kitesurf.rendering.cfdata.org/?url=http%3A%2F%2Fwpt.live%2Fdom%2Fnodes%2FNode-replaceChild.html ↗
Upstream
view on github.com/web-platform-tests/wpt ↗

Subtests

statussubtestmessage
PASSShould check the 'parent' type before checking whether 'child' is a child of 'parent'
PASSShould check that 'node' is not an ancestor of 'parent' before checking whether 'child' is a child of 'parent'
PASSShould check whether 'child' is a child of 'parent' before checking whether 'node' is of a type that can have a parent.
PASSShould check whether 'child' is a child of 'parent' before checking whether 'node' is of a type that can have a parent of the type that 'parent' is.
PASSShould check whether 'child' is a child of 'parent' before checking whether 'node' can be inserted into the document given the kids the document has right now.
PASSPassing null to replaceChild should throw a TypeError.
PASSIf child's parent is not the context node, a NotFoundError exception should be thrown
PASSIf the context node is not a node that can contain children, a HierarchyRequestError exception should be thrown
PASSIf node is an inclusive ancestor of the context node, a HierarchyRequestError should be thrown.
PASSIf the context node is a document, inserting a document or text node should throw a HierarchyRequestError.
PASSIf the context node is a document, inserting a DocumentFragment that contains a text node or too many elements should throw a HierarchyRequestError.
PASSIf the context node is a document (without element children), inserting a DocumentFragment that contains multiple elements should throw a HierarchyRequestError.
PASSIf the context node is a document, inserting a DocumentFragment with an element if there already is an element child should throw a HierarchyRequestError.
FAILIf the context node is a document, inserting a DocumentFragment with an element before the doctype should throw a HierarchyRequestError.assert_throws_dom: function "function() { doc.replaceChild(df, comment); }" did not throw
PASSIf the context node is a document, inserting an element if there already is an element child should throw a HierarchyRequestError.
FAILIf the context node is a document, inserting an element before the doctype should throw a HierarchyRequestError.assert_throws_dom: function "function() { doc.replaceChild(a, comment); }" did not throw
PASSIf the context node is a document, inserting a doctype if there already is a doctype child should throw a HierarchyRequestError.
PASSIf the context node is a document, inserting a doctype after the document element should throw a HierarchyRequestError.
PASSIf the context node is a DocumentFragment, inserting a document or a doctype should throw a HierarchyRequestError.
PASSIf the context node is an element, inserting a document or a doctype should throw a HierarchyRequestError.
PASSReplacing a node with its next sibling should work (2 children)
PASSReplacing a node with its next sibling should work (4 children)
PASSReplacing a node with itself should not move the node
FAILIf the context node is a document, inserting a new doctype should work.assert_equals: expected null but got Document node with 2 children
PASSReplacing the document element with a DocumentFragment containing a single element should work.
PASSReplacing the document element with a DocumentFragment containing a single element and comments should work.
PASSReplacing the document element with a single element should work.
PASSreplaceChild should work in the presence of mutation events.
PASSReplacing an element with a DocumentFragment should allow a child of the DocumentFragment to be found by Id.

bundle built 2026-07-16T07:16:48.063Z