Document-getElementById.html

PASSExpected18 of 18 subtests pass365 ms

Details

Test
/dom/nodes/Document-getElementById.html
Harness
OK

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