WPT
wpt / custom-elements / htmlconstructor / newtarget.html
Spec: https://html.spec.whatwg.org/multipage/custom-elements.html ↗
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 | 6/10 | 10/10 | 10/10 | 10/10 | 10/10 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| Use NewTarget's prototype, not the one stored at definition time | PASS | PASS | PASS | PASS | PASS | — |
| Rethrow any exceptions thrown while getting the prototype | PASS | PASS | PASS | PASS | PASS | — |
| If prototype is not object (null), derives the fallback from NewTarget's realm (autonomous custom elements) | PASS | PASS | PASS | PASS | PASS | — |
| If prototype is not object (null), derives the fallback from NewTarget's GetFunctionRealm (autonomous custom elements) | FAIL | PASS | PASS | PASS | PASS | — |
| If prototype is not object (undefined), derives the fallback from NewTarget's realm (autonomous custom elements) | PASS | PASS | PASS | PASS | PASS | — |
| If prototype is not object (undefined), derives the fallback from NewTarget's GetFunctionRealm (autonomous custom elements) | FAIL | PASS | PASS | PASS | PASS | — |
| If prototype is not object (5), derives the fallback from NewTarget's realm (autonomous custom elements) | PASS | PASS | PASS | PASS | PASS | — |
| If prototype is not object (5), derives the fallback from NewTarget's GetFunctionRealm (autonomous custom elements) | FAIL | PASS | PASS | PASS | PASS | — |
| If prototype is not object (string), derives the fallback from NewTarget's realm (autonomous custom elements) | PASS | PASS | PASS | PASS | PASS | — |
| If prototype is not object (string), derives the fallback from NewTarget's GetFunctionRealm (autonomous custom elements) | FAIL | PASS | PASS | PASS | PASS | — |