WPT
wpt / custom-elements / Document-createElement.html
Spec: https://html.spec.whatwg.org/multipage/custom-elements.html ↗
Runs: Chrome 155.0.8041.0 (wpt@4a01b83e3, 2026-09-04) | Firefox 157.0a1 (wpt@4a01b83e3, 2026-09-04) | Safari 251 preview (wpt@a1e944e7a, 2026-09-04) | Ladybird 1.0-a7825 (wpt@4a01b83e3, 2026-09-04) | Servo Servo 0.6 (wpt@7e3d005d7, 2026-09-03) | Blitz a50cb8971 (wpt@a95401e4e, 2026-09-03)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 36/36 | 36/36 | 36/36 | 36/36 | 36/36 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| document.createElement must create an instance of custom elements | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a TypeError when the result of Construct is not a DOM node | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a TypeError when the result of Construct is a TextNode | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when attribute is added by setAttribute during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when attribute is added by attributes.setNamedItem during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must not report a NotSupportedError when attribute is added and removed during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when a Text child is added during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when a Comment child is added during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when an element child is added during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must not report a NotSupportedError when an element child is added and removed during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element gets inserted into another element during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must not report a NotSupportedError when the element is inserted and removed from another element during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is adopted into a the document of the template elements during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is inserted into a the document of the template elements during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must not report a NotSupportedError when the element is adopted back from a the document of the template elements during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is adopted into a a new document during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is inserted into a a new document during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must not report a NotSupportedError when the element is adopted back from a a new document during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is adopted into a a cloned document during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is inserted into a a cloned document during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must not report a NotSupportedError when the element is adopted back from a a cloned document during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is adopted into a a document created by createHTMLDocument during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is inserted into a a document created by createHTMLDocument during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must not report a NotSupportedError when the element is adopted back from a a document created by createHTMLDocument during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is adopted into a an HTML document created by createDocument during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is inserted into a an HTML document created by createDocument during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must not report a NotSupportedError when the element is adopted back from a an HTML document created by createDocument during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is adopted into a the document of an iframe during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is inserted into a the document of an iframe during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must not report a NotSupportedError when the element is adopted back from a the document of an iframe during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is adopted into a an HTML document fetched by XHR during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the element is inserted into a an HTML document fetched by XHR during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must not report a NotSupportedError when the element is adopted back from a an HTML document fetched by XHR during construction | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report a NotSupportedError when the local name of the element does not match that of the custom element | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement must report an exception thrown by a custom element constructor | PASS | PASS | PASS | PASS | PASS | — |
| document.createElement with undefined options value should be upgraded. | PASS | PASS | PASS | PASS | PASS | — |