WPT
wpt / trusted-types / block-string-assignment-to-Element-insertAdjacentHTML.html
Spec: Trusted Types ↗
Runs: Chrome 155.0.8038.0 (wpt@05fffeacb, 2026-09-02) | Firefox 157.0a1 (wpt@7addae031, 2026-09-02) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-410b4 (wpt@ce41a9c47, 2026-09-02) | Servo Servo 0.6 (wpt@09159dcb3, 2026-09-02) | 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 | 7/7 | 7/7 | 7/7 | 7/7 | 7/7 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| insertAdjacentHTML with html assigned via policy (successful HTML transformation). | PASS | PASS | PASS | PASS | PASS | — |
| insertAdjacentHTML(TrustedHTML) throws SyntaxError DOMException when position invalid. | PASS | PASS | PASS | PASS | PASS | — |
| `insertAdjacentHTML(string)` throws. | PASS | PASS | PASS | PASS | PASS | — |
| `insertAdjacentHTML(string)` still throws TypeError when position invalid. | PASS | PASS | PASS | PASS | PASS | — |
| `insertAdjacentHTML(null)` throws. | PASS | PASS | PASS | PASS | PASS | — |
| `insertAdjacentHTML(string)` assigned via default policy (successful HTML transformation). | PASS | PASS | PASS | PASS | PASS | — |
| `insertAdjacentHTML(null)` assigned via default policy does not throw. | PASS | PASS | PASS | PASS | PASS | — |