Click here to download the Blitz Browser!

WPT

wpt / trusted-types / block-string-assignment-to-Document-write.html

Spec: Trusted Types ↗

Runs: Chrome 155.0.8039.0 (wpt@47d833bbc, 2026-09-03) | Firefox 157.0a1 (wpt@47d833bbc, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-3d220 (wpt@476394464, 2026-09-03) | 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

ChromeFirefoxSafariLadybirdServoBlitz
Total20/2020/2020/2015/2020/20NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
document.write with html assigned via policy (successful URL transformation).PASSPASSPASSPASSPASS
document.write with multiple trusted arguments.PASSPASSPASSPASSPASS
document.writeln with html assigned via policy (successful URL transformation).PASSPASSPASSFAILPASS
document.writeln with multiple trusted arguments.PASSPASSPASSFAILPASS
`document.write(string)` throwsPASSPASSPASSPASSPASS
`document.write(string, string)` throwsPASSPASSPASSPASSPASS
`document.write(string, TrustedHTML)` throwsPASSPASSPASSPASSPASS
`document.writeln(string)` throwsPASSPASSPASSPASSPASS
`document.writeln(string, string)` throwsPASSPASSPASSPASSPASS
`document.writeln(string, TrustedHTML)` throwsPASSPASSPASSPASSPASS
`document.write(null)` throwsPASSPASSPASSPASSPASS
`document.writeln(null)` throwsPASSPASSPASSPASSPASS
`document.write(string)` observes default policyPASSPASSPASSPASSPASS
`document.write(string, string)` observes default policyPASSPASSPASSPASSPASS
`document.write(string, TrustedHTML)` observes default policyPASSPASSPASSPASSPASS
`document.write` passes the correct sink string to the default policyPASSPASSPASSPASSPASS
`document.writeln(string)` observes default policyPASSPASSPASSFAILPASS
`document.writeln(string, string)` observes default policyPASSPASSPASSFAILPASS
`document.writeln(string, TrustedHTML)` observes default policyPASSPASSPASSFAILPASS
`document.writeln` passes the correct sink string to the default policyPASSPASSPASSPASSPASS