WPT
wpt / trusted-types / block-string-assignment-to-Element-insertAdjacentHTML.html
Spec: Trusted Types ↗
Runs: Chrome 155.0.8042.0 (wpt@0a3996025, 2026-09-04) | Firefox 157.0a1 (wpt@972e0e100, 2026-09-04) | Safari 251 preview (wpt@972e0e100, 2026-09-04) | Ladybird 1.0-481bc (wpt@d317428a6, 2026-09-05) | Servo Servo 0.6 (wpt@2c385f65e, 2026-09-04) | 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 | 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 | — |