kitesurf · WPT

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

Subtests

statussubtestmessage
PASSCalling document.getElementById with an empty string argument.
PASSCalling document.getElementById with a null argument.
PASSCalling document.getElementById with an undefined argument.
PASSon static page
PASSDocument.getElementById with a script-inserted element
PASSupdate `id` attribute via setAttribute/removeAttribute
PASSEnsure that the id attribute only affects elements present in a document
PASSin tree order, within the context object's tree
PASSModern browsers optimize this method with using internal id cache. This test checks that their optimization should effect only append to `Document`, not append to `Node`.
PASSchanging attribute's value via `Attr` gotten from `Element.attribute`.
PASSadd id attribute via innerHTML
PASSremove id attribute via innerHTML
PASSadd id attribute via outerHTML
PASSremove id attribute via outerHTML
PASSupdate `id` attribute via element.id
PASSwhere insertion order and tree order don't match
PASSInserting an id by inserting its parent node
PASSDocument.getElementById must not return nodes not present in document

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