sanitizer-api
editWPT coverage of the tests of sanitizer-api at the revision 5602b0f210e3. The tests link to their results in the browsers on wpt.fyi. The tentative tests (experimental features) and the reftests are listed separately from the stable tests.
| Group | Passing | Tests | Disabled | Pass rate |
|---|---|---|---|---|
| Stable | 48 | 50 | 0 | 96% |
| Tentative | 8 | 14 | 0 | 57% |
| Reftests | 0 | 0 | 0 | – |
| All | 56 | 64 | 0 | 88% |
Failure reasons
The tests that do not pass (failing or disabled), by kind of reason. A test with several reasons counts once per kind.
- TEST BUG: 6
- NOT IMPLEMENTED: 2
Stable tests
Tentative tests
| Test | Result | Subtests | Kind | Description |
|---|---|---|---|---|
parsehtmlunsafe-with-trustedtypes.tentative.html | Fail | 5 / 7 | TEST BUG | a createParserOptions callback of the default policy that returns null or undefined is expected to accept the string without sanitizing it: the string is rejected with a TypeError (https://w3c.github.io/trusted-types/dist/spec/#get-trusted-type-compliant-parser-options); fixed upstream (web-platform-tests/wpt@b5daf96de8, "Apply latest spec changes for createParserOptions") |
sanitizer-custom-elements-is.tentative.html | Pass | 8 / 8 | ||
sethtml-context.tentative.html | Pass | 10 / 10 | ||
sethtml-with-declarative-shadow-root.tentative.html | Fail | 9 / 10 | NOT IMPLEMENTED | ShadowRoot.referenceTarget (the shadowrootreferencetarget attribute) |
sethtml-with-trustedtypes-createParserOptions-null.tentative.html | Fail | 0 / 2 | TEST BUG | the createParserOptions callback of a named policy returns null, which is expected to create TrustedHTMLParserOptions without a sanitizer: createParserOptions() throws a TypeError (https://w3c.github.io/trusted-types/dist/spec/#create-a-trusted-type-algorithm); fixed upstream (web-platform-tests/wpt@2e954fa1b2, sethtml-with-trustedtypes-createParserOptions-null.html expects the TypeError) |
sethtml-with-trustedtypes-createParserOptions.tentative.html | Fail | 9 / 11 | TEST BUG | the TrustedHTMLParserOptions without sanitizer still requires createHTML subtests create their options with a named policy whose callback returns null, which throws a TypeError (https://w3c.github.io/trusted-types/dist/spec/#create-a-trusted-type-algorithm), and expect options without a sanitizer not to satisfy the sink: any TrustedHTMLParserOptions does (https://w3c.github.io/trusted-types/dist/spec/#get-trusted-type-compliant-input); fixed upstream (web-platform-tests/wpt@b5daf96de8, "Apply latest spec changes for createParserOptions") |
sethtml-with-trustedtypes-immutable.tentative.html | Pass | 6 / 6 | ||
sethtml-with-trustedtypes.tentative.html | Fail | 111 / 151 | TEST BUG | the subtests expect a createParserOptions callback of the default policy that returns null or undefined to accept the string without sanitizing it (and then createHTML to be called), and the callback not to enable the scripts: the string is rejected with a TypeError, and the options it returns determine runScripts (https://w3c.github.io/trusted-types/dist/spec/#get-trusted-type-compliant-parser-options); fixed upstream (web-platform-tests/wpt@b5daf96de8, "Apply latest spec changes for createParserOptions") |
sethtml-xml-document-sanitizer.tentative.html | Fail | 1 / 7 | TEST BUG | innerHTML, outerHTML, insertAdjacentHTML() and createContextualFragment() are expected to throw in an XML document when the default policy gives a sanitizer: the parser options are not used in XML documents, where the string is converted by createHTML (https://w3c.github.io/trusted-types/dist/spec/#get-trusted-type-compliant-input); fixed upstream (web-platform-tests/wpt@b5daf96de8, "Apply latest spec changes for createParserOptions") |
trustedhtml-unvetted-parser-options-default-createHTML.tentative.html | Pass | 54 / 54 | ||
trustedhtml-unvetted-parser-options-default-createParserOptions.tentative.html | Pass | 5 / 5 | ||
trustedhtml-unvetted-parser-options-no-enforcement.tentative.html | Pass | 8 / 8 | ||
trustedhtml-unvetted-parser-options-report-only.tentative.html | Pass | 8 / 8 | ||
trustedhtml-unvetted-parser-options.tentative.html | Pass | 43 / 43 |