WPT
wpt / trusted-types / TrustedTypePolicyFactory-getAttributeType.html
Spec: Trusted Types ↗
Runs: Chrome 154.0.8037.0 (wpt@98a70a0c5) | Firefox 157.0a1 (wpt@98a70a0c5) | Safari 251 preview (wpt@5ce815a83) | Ladybird 1.0-28104 (wpt@b1a7025f8) | Servo Servo 0.5 (wpt@2ccd2cbf8) | Blitz dc9e62f29 (wpt@a95401e4e)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 23/23 | 23/23 | 23/23 | 23/23 | 23/23 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| getAttributeType( "DIV", "onclick", "http://www.w3.org/1999/xhtml", "null") == "TrustedScript" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "g", "ondblclick", "http://www.w3.org/2000/svg", "null") == "TrustedScript" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "mrow", "onmousedown", "http://www.w3.org/1998/Math/MathML", "null") == "TrustedScript" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "IFRAME", "srcdoc", "http://www.w3.org/1999/xhtml", "null") == "TrustedHTML" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "SCRIPT", "src", "http://www.w3.org/1999/xhtml", "null") == "TrustedScriptURL" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "script", "href", "http://www.w3.org/2000/svg", "null") == "TrustedScriptURL" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "script", "href", "http://www.w3.org/2000/svg", "http://www.w3.org/1999/xlink") == "TrustedScriptURL" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "foo", "onmouseup", "https://example.com/namespace", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "DIV", "onclick", "http://www.w3.org/1999/xhtml", "https://example.com/namespace") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "DIV", "ondoesnotexist", "http://www.w3.org/1999/xhtml", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "DIV", "data-onclick", "http://www.w3.org/1999/xhtml", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "DIV", "srcdoc", "http://www.w3.org/1999/xhtml", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "iframe", "srcdoc", "https://example.com/namespace", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "IFRAME", "srcdoc", "http://www.w3.org/1999/xhtml", "https://example.com/namespace") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "IFRAME", "data-srcdoc", "http://www.w3.org/1999/xhtml", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "DIV", "src", "http://www.w3.org/1999/xhtml", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "script", "src", "https://example.com/namespace", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "SCRIPT", "src", "http://www.w3.org/1999/xhtml", "https://example.com/namespace") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "SCRIPT", "data-src", "http://www.w3.org/1999/xhtml", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "g", "href", "http://www.w3.org/2000/svg", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "SCRIPT", "href", "http://www.w3.org/1999/xhtml", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "script", "href", "http://www.w3.org/2000/svg", "https://example.com/namespace") == "null" | PASS | PASS | PASS | PASS | PASS | — |
| getAttributeType( "script", "src", "http://www.w3.org/2000/svg", "null") == "null" | PASS | PASS | PASS | PASS | PASS | — |