Click here to download the Blitz Browser!

WPT

wpt / trusted-types / TrustedTypePolicyFactory-getAttributeType.html

Spec: Trusted Types ↗

Runs: Chrome 155.0.8039.0 (wpt@6ec9fd59f, 2026-09-03) | Firefox 157.0a1 (wpt@6ec9fd59f, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-795e1 (wpt@7e3d005d7, 2026-09-03) | 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

ChromeFirefoxSafariLadybirdServoBlitz
Total23/2323/2323/2323/2323/23NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
getAttributeType( "DIV", "onclick", "http://www.w3.org/1999/xhtml", "null") == "TrustedScript"PASSPASSPASSPASSPASS
getAttributeType( "g", "ondblclick", "http://www.w3.org/2000/svg", "null") == "TrustedScript"PASSPASSPASSPASSPASS
getAttributeType( "mrow", "onmousedown", "http://www.w3.org/1998/Math/MathML", "null") == "TrustedScript"PASSPASSPASSPASSPASS
getAttributeType( "IFRAME", "srcdoc", "http://www.w3.org/1999/xhtml", "null") == "TrustedHTML"PASSPASSPASSPASSPASS
getAttributeType( "SCRIPT", "src", "http://www.w3.org/1999/xhtml", "null") == "TrustedScriptURL"PASSPASSPASSPASSPASS
getAttributeType( "script", "href", "http://www.w3.org/2000/svg", "null") == "TrustedScriptURL"PASSPASSPASSPASSPASS
getAttributeType( "script", "href", "http://www.w3.org/2000/svg", "http://www.w3.org/1999/xlink") == "TrustedScriptURL"PASSPASSPASSPASSPASS
getAttributeType( "foo", "onmouseup", "https://example.com/namespace", "null") == "null"PASSPASSPASSPASSPASS
getAttributeType( "DIV", "onclick", "http://www.w3.org/1999/xhtml", "https://example.com/namespace") == "null"PASSPASSPASSPASSPASS
getAttributeType( "DIV", "ondoesnotexist", "http://www.w3.org/1999/xhtml", "null") == "null"PASSPASSPASSPASSPASS
getAttributeType( "DIV", "data-onclick", "http://www.w3.org/1999/xhtml", "null") == "null"PASSPASSPASSPASSPASS
getAttributeType( "DIV", "srcdoc", "http://www.w3.org/1999/xhtml", "null") == "null"PASSPASSPASSPASSPASS
getAttributeType( "iframe", "srcdoc", "https://example.com/namespace", "null") == "null"PASSPASSPASSPASSPASS
getAttributeType( "IFRAME", "srcdoc", "http://www.w3.org/1999/xhtml", "https://example.com/namespace") == "null"PASSPASSPASSPASSPASS
getAttributeType( "IFRAME", "data-srcdoc", "http://www.w3.org/1999/xhtml", "null") == "null"PASSPASSPASSPASSPASS
getAttributeType( "DIV", "src", "http://www.w3.org/1999/xhtml", "null") == "null"PASSPASSPASSPASSPASS
getAttributeType( "script", "src", "https://example.com/namespace", "null") == "null"PASSPASSPASSPASSPASS
getAttributeType( "SCRIPT", "src", "http://www.w3.org/1999/xhtml", "https://example.com/namespace") == "null"PASSPASSPASSPASSPASS
getAttributeType( "SCRIPT", "data-src", "http://www.w3.org/1999/xhtml", "null") == "null"PASSPASSPASSPASSPASS
getAttributeType( "g", "href", "http://www.w3.org/2000/svg", "null") == "null"PASSPASSPASSPASSPASS
getAttributeType( "SCRIPT", "href", "http://www.w3.org/1999/xhtml", "null") == "null"PASSPASSPASSPASSPASS
getAttributeType( "script", "href", "http://www.w3.org/2000/svg", "https://example.com/namespace") == "null"PASSPASSPASSPASSPASS
getAttributeType( "script", "src", "http://www.w3.org/2000/svg", "null") == "null"PASSPASSPASSPASSPASS