47sanitizer-api/
3,784 / 3,806 WPT subtests passing
- Failed
- 22
- Timed out
- 0
- Not run
- 0
- Test files
- 47
- Blocking files
- 0
Chrome 3,146 / 3,806 WPT subtests passing on the same files, 2 blocking
Tests
47 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
html5lib-basics.html 18 / 18 passingChrome 18 / 180 failedClean
18 passing subtests
- Testcase #0 with .setHTMLUnsafe("Hello!")
- Testcase #0, .innerHTML matches .setHTMLUnsafe
- Testcase #1 with .setHTMLUnsafe("<p>bla")
- Testcase #1, .innerHTML matches .setHTMLUnsafe
- Testcase #2 with .setHTMLUnsafe("<p id=abc def='123'>texty<!-- xxx -->textz")
- Testcase #2, .innerHTML matches .setHTMLUnsafe
- Testcase #3 with .setHTMLUnsafe("<p>Hello <b>World</b><span>!")
- Testcase #3, .innerHTML matches .setHTMLUnsafe
- Testcase #4 with .setHTMLUnsafe("<p>A template example.<template>Hello <b>World</b></template>!")
- Testcase #4, .innerHTML matches .setHTMLUnsafe
- Testcase #5 with .setHTMLUnsafe("<td>Interesting parse context.</td>")
- Testcase #5, .innerHTML matches .setHTMLUnsafe
- Testcase #6 with .setHTMLUnsafe("<p>A rather boring parse context.")
- Testcase #6, .innerHTML matches .setHTMLUnsafe
- Testcase #7 with .setHTMLUnsafe("<table><b>a</b>bb<tr><td>y")
- Testcase #7, .innerHTML matches .setHTMLUnsafe
- Testcase #8 with .setHTMLUnsafe("<table><div>d</div><td>")
- Testcase #8, .innerHTML matches .setHTMLUnsafe
parsehtmlunsafe-with-trustedtypes.html 7 / 7 passingChrome 7 / 70 failedClean
7 passing subtests
- Document.parseHTMLUnsafe: createParserOptions can inject a sanitizer config
- Document.parseHTMLUnsafe: passing TrustedHTMLParserOptions directly works
- Document.parseHTMLUnsafe: createParserOptions returning null fails
- Document.parseHTMLUnsafe: createParserOptions returning undefined fails
- Document.parseHTMLUnsafe: createParserOptions returning 0 fails
- Document.parseHTMLUnsafe: createParserOptions returning 123 fails
- Document.parseHTMLUnsafe: createParserOptions returning "foo" fails
sanitizer-base-immutable.html 27 / 27 passingChrome 26 / 270 failedClean
27 passing subtests
- Modifying a Sanitizer instance does not change subsequent new Sanitizer() instances
- allowElement() on new Sanitizer() does not affect subsequent instances
- removeElement() on new Sanitizer() does not affect subsequent instances
- replaceElementWithChildren() on new Sanitizer() does not affect subsequent instances
- allowAttribute() on new Sanitizer() does not affect subsequent instances
- removeAttribute() on new Sanitizer() does not affect subsequent instances
- allowProcessingInstruction() on new Sanitizer() does not affect subsequent instances
- removeProcessingInstruction() on new Sanitizer() does not affect subsequent instances
- setComments() on new Sanitizer() does not affect subsequent instances
- setDataAttributes() on new Sanitizer() does not affect subsequent instances
- removeUnsafe() on new Sanitizer() does not affect subsequent instances
- Mutating the object returned by sanitizer.get() does not affect the Sanitizer or default configuration
- Repeated calls to sanitizer.get() return distinct object copies
- Modifying a Sanitizer after removeUnsafe() does not change the built-in safe baseline configuration
- Mutating config returned from baseline sanitizer does not affect subsequent removeUnsafe() calls
- Modifying input configuration dictionary after new Sanitizer(config) does not affect the Sanitizer
- Sanitization with Element.prototype.setHTML() does not change default base configuration
- Sanitization with Document.parseHTML() does not change default base configuration
- A modified Sanitizer used in setHTML() does not affect default configuration or other Sanitizers
- s.get() is unchanged after Element.prototype.setHTML() when Sanitizer has unsafe allowlist entries
- s.get() is unchanged after Element.prototype.setHTML() when Sanitizer has unsafe remove-list configuration
- s.get() is unchanged after Document.parseHTML() when Sanitizer has unsafe entries
- Sanitization with appendHTML() does not change default base configuration or mutate passed Sanitizer
- Sanitization with prependHTML() does not change default base configuration or mutate passed Sanitizer
- Sanitization with beforeHTML() does not change default base configuration or mutate passed Sanitizer
- Sanitization with afterHTML() does not change default base configuration or mutate passed Sanitizer
- Sanitization with replaceWithHTML() does not change default base configuration or mutate passed Sanitizer
sanitizer-basic-filtering.html 354 / 354 passingChrome 354 / 3540 failedClean
354 passing subtests
- setHTML testcase text/0, "text"
- setHTMLUnsafe testcase text/0, "text"
- ShadowRoot.setHTML testcase text/0, "text"
- ShadowRoot.setHTMLUnsafe testcase text/0, "text"
- parseHTML testcase text/0, "text"
- parseHTMLUnsafe testcase text/0, "text"
- setHTML testcase elements/0, "<div><p>Hello <b>World!</b>"
- setHTMLUnsafe testcase elements/0, "<div><p>Hello <b>World!</b>"
- ShadowRoot.setHTML testcase elements/0, "<div><p>Hello <b>World!</b>"
- ShadowRoot.setHTMLUnsafe testcase elements/0, "<div><p>Hello <b>World!</b>"
- parseHTML testcase elements/0, "<div><p>Hello <b>World!</b>"
- parseHTMLUnsafe testcase elements/0, "<div><p>Hello <b>World!</b>"
- setHTML testcase elements/1, "<div><p>Hello <b>World!</b>"
- setHTMLUnsafe testcase elements/1, "<div><p>Hello <b>World!</b>"
- ShadowRoot.setHTML testcase elements/1, "<div><p>Hello <b>World!</b>"
- ShadowRoot.setHTMLUnsafe testcase elements/1, "<div><p>Hello <b>World!</b>"
- parseHTML testcase elements/1, "<div><p>Hello <b>World!</b>"
- parseHTMLUnsafe testcase elements/1, "<div><p>Hello <b>World!</b>"
- setHTML testcase elements/2, "<div><p>Hello <b>World!</b>"
- setHTMLUnsafe testcase elements/2, "<div><p>Hello <b>World!</b>"
- ShadowRoot.setHTML testcase elements/2, "<div><p>Hello <b>World!</b>"
- ShadowRoot.setHTMLUnsafe testcase elements/2, "<div><p>Hello <b>World!</b>"
- parseHTML testcase elements/2, "<div><p>Hello <b>World!</b>"
- parseHTMLUnsafe testcase elements/2, "<div><p>Hello <b>World!</b>"
- setHTML testcase elements/3, "<div><p>Hello <b>World!</b>"
- setHTMLUnsafe testcase elements/3, "<div><p>Hello <b>World!</b>"
- ShadowRoot.setHTML testcase elements/3, "<div><p>Hello <b>World!</b>"
- ShadowRoot.setHTMLUnsafe testcase elements/3, "<div><p>Hello <b>World!</b>"
- parseHTML testcase elements/3, "<div><p>Hello <b>World!</b>"
- parseHTMLUnsafe testcase elements/3, "<div><p>Hello <b>World!</b>"
- setHTML testcase elements/4, "<div><p>Hello <b>World!</b>"
- setHTMLUnsafe testcase elements/4, "<div><p>Hello <b>World!</b>"
- ShadowRoot.setHTML testcase elements/4, "<div><p>Hello <b>World!</b>"
- ShadowRoot.setHTMLUnsafe testcase elements/4, "<div><p>Hello <b>World!</b>"
- parseHTML testcase elements/4, "<div><p>Hello <b>World!</b>"
- parseHTMLUnsafe testcase elements/4, "<div><p>Hello <b>World!</b>"
- setHTML testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
- setHTMLUnsafe testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
- ShadowRoot.setHTML testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
- ShadowRoot.setHTMLUnsafe testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
- parseHTML testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
- parseHTMLUnsafe testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
- setHTML testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
- setHTMLUnsafe testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
- ShadowRoot.setHTML testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
- ShadowRoot.setHTMLUnsafe testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
- parseHTML testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
- parseHTMLUnsafe testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
- setHTML testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
- setHTMLUnsafe testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
- ShadowRoot.setHTML testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
- ShadowRoot.setHTMLUnsafe testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
- parseHTML testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
- parseHTMLUnsafe testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
- setHTML testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
- setHTMLUnsafe testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
- ShadowRoot.setHTML testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
- ShadowRoot.setHTMLUnsafe testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
- parseHTML testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
- parseHTMLUnsafe testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
- setHTML testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
- setHTMLUnsafe testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
- ShadowRoot.setHTML testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
- ShadowRoot.setHTMLUnsafe testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
- parseHTML testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
- parseHTMLUnsafe testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
- setHTML testcase comments/0, "a <!-- comment --> b"
- setHTMLUnsafe testcase comments/0, "a <!-- comment --> b"
- ShadowRoot.setHTML testcase comments/0, "a <!-- comment --> b"
- ShadowRoot.setHTMLUnsafe testcase comments/0, "a <!-- comment --> b"
- parseHTML testcase comments/0, "a <!-- comment --> b"
- parseHTMLUnsafe testcase comments/0, "a <!-- comment --> b"
- setHTML testcase comments/1, "a <!-- comment --> b"
- setHTMLUnsafe testcase comments/1, "a <!-- comment --> b"
- ShadowRoot.setHTML testcase comments/1, "a <!-- comment --> b"
- ShadowRoot.setHTMLUnsafe testcase comments/1, "a <!-- comment --> b"
- parseHTML testcase comments/1, "a <!-- comment --> b"
- parseHTMLUnsafe testcase comments/1, "a <!-- comment --> b"
- setHTML testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
- setHTMLUnsafe testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
- ShadowRoot.setHTML testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
- ShadowRoot.setHTMLUnsafe testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
- parseHTML testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
- parseHTMLUnsafe testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
- setHTML testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
- setHTMLUnsafe testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
- ShadowRoot.setHTML testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
- ShadowRoot.setHTMLUnsafe testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
- parseHTML testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
- parseHTMLUnsafe testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
- setHTML testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
- setHTMLUnsafe testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
- ShadowRoot.setHTML testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
- ShadowRoot.setHTMLUnsafe testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
- parseHTML testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
- parseHTMLUnsafe testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
- setHTML testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- setHTMLUnsafe testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- ShadowRoot.setHTML testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- ShadowRoot.setHTMLUnsafe testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- parseHTML testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- parseHTMLUnsafe testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- setHTML testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- setHTMLUnsafe testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- ShadowRoot.setHTML testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- ShadowRoot.setHTMLUnsafe testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- parseHTML testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- parseHTMLUnsafe testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
- setHTML testcase namespaces/0, "<svg><rect></svg><math><mi>x"
- setHTMLUnsafe testcase namespaces/0, "<svg><rect></svg><math><mi>x"
- ShadowRoot.setHTML testcase namespaces/0, "<svg><rect></svg><math><mi>x"
- ShadowRoot.setHTMLUnsafe testcase namespaces/0, "<svg><rect></svg><math><mi>x"
- parseHTML testcase namespaces/0, "<svg><rect></svg><math><mi>x"
- parseHTMLUnsafe testcase namespaces/0, "<svg><rect></svg><math><mi>x"
- setHTML testcase namespaces/1, "<svg><rect>"
- setHTMLUnsafe testcase namespaces/1, "<svg><rect>"
- ShadowRoot.setHTML testcase namespaces/1, "<svg><rect>"
- ShadowRoot.setHTMLUnsafe testcase namespaces/1, "<svg><rect>"
- parseHTML testcase namespaces/1, "<svg><rect>"
- parseHTMLUnsafe testcase namespaces/1, "<svg><rect>"
- setHTML testcase namespaces/2, "<svg><rect>"
- setHTMLUnsafe testcase namespaces/2, "<svg><rect>"
- ShadowRoot.setHTML testcase namespaces/2, "<svg><rect>"
- ShadowRoot.setHTMLUnsafe testcase namespaces/2, "<svg><rect>"
- parseHTML testcase namespaces/2, "<svg><rect>"
- parseHTMLUnsafe testcase namespaces/2, "<svg><rect>"
- setHTML testcase namespaces/3, "<svg><rect>"
- setHTMLUnsafe testcase namespaces/3, "<svg><rect>"
- ShadowRoot.setHTML testcase namespaces/3, "<svg><rect>"
- ShadowRoot.setHTMLUnsafe testcase namespaces/3, "<svg><rect>"
- parseHTML testcase namespaces/3, "<svg><rect>"
- parseHTMLUnsafe testcase namespaces/3, "<svg><rect>"
- setHTML testcase namespaces/4, "<math><mi>x"
- setHTMLUnsafe testcase namespaces/4, "<math><mi>x"
- ShadowRoot.setHTML testcase namespaces/4, "<math><mi>x"
- ShadowRoot.setHTMLUnsafe testcase namespaces/4, "<math><mi>x"
- parseHTML testcase namespaces/4, "<math><mi>x"
- parseHTMLUnsafe testcase namespaces/4, "<math><mi>x"
- setHTML testcase namespaces/5, "<math><mi>x"
- setHTMLUnsafe testcase namespaces/5, "<math><mi>x"
- ShadowRoot.setHTML testcase namespaces/5, "<math><mi>x"
- ShadowRoot.setHTMLUnsafe testcase namespaces/5, "<math><mi>x"
- parseHTML testcase namespaces/5, "<math><mi>x"
- parseHTMLUnsafe testcase namespaces/5, "<math><mi>x"
- setHTML testcase namespaces/6, "<math><mi>x"
- setHTMLUnsafe testcase namespaces/6, "<math><mi>x"
- ShadowRoot.setHTML testcase namespaces/6, "<math><mi>x"
- ShadowRoot.setHTMLUnsafe testcase namespaces/6, "<math><mi>x"
- parseHTML testcase namespaces/6, "<math><mi>x"
- parseHTMLUnsafe testcase namespaces/6, "<math><mi>x"
- setHTML testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- setHTMLUnsafe testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- ShadowRoot.setHTML testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- ShadowRoot.setHTMLUnsafe testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- parseHTML testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- parseHTMLUnsafe testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- setHTML testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- setHTMLUnsafe testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- ShadowRoot.setHTML testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- ShadowRoot.setHTMLUnsafe testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- parseHTML testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- parseHTMLUnsafe testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- setHTML testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- setHTMLUnsafe testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- ShadowRoot.setHTML testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- ShadowRoot.setHTMLUnsafe testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- parseHTML testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- parseHTMLUnsafe testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
- setHTML testcase namespaces/10, "<svg>Hello</svg>"
- setHTMLUnsafe testcase namespaces/10, "<svg>Hello</svg>"
- ShadowRoot.setHTML testcase namespaces/10, "<svg>Hello</svg>"
- ShadowRoot.setHTMLUnsafe testcase namespaces/10, "<svg>Hello</svg>"
- parseHTML testcase namespaces/10, "<svg>Hello</svg>"
- parseHTMLUnsafe testcase namespaces/10, "<svg>Hello</svg>"
- setHTML testcase namespaces/11, "<svg>Hello</svg>"
- setHTMLUnsafe testcase namespaces/11, "<svg>Hello</svg>"
- ShadowRoot.setHTML testcase namespaces/11, "<svg>Hello</svg>"
- ShadowRoot.setHTMLUnsafe testcase namespaces/11, "<svg>Hello</svg>"
- parseHTML testcase namespaces/11, "<svg>Hello</svg>"
- parseHTMLUnsafe testcase namespaces/11, "<svg>Hello</svg>"
- setHTML testcase namespaces/12, "<math>Hello</math>"
- setHTMLUnsafe testcase namespaces/12, "<math>Hello</math>"
- ShadowRoot.setHTML testcase namespaces/12, "<math>Hello</math>"
- ShadowRoot.setHTMLUnsafe testcase namespaces/12, "<math>Hello</math>"
- parseHTML testcase namespaces/12, "<math>Hello</math>"
- parseHTMLUnsafe testcase namespaces/12, "<math>Hello</math>"
- setHTML testcase namespaces/13, "<math>Hello</math>"
- setHTMLUnsafe testcase namespaces/13, "<math>Hello</math>"
- ShadowRoot.setHTML testcase namespaces/13, "<math>Hello</math>"
- ShadowRoot.setHTMLUnsafe testcase namespaces/13, "<math>Hello</math>"
- parseHTML testcase namespaces/13, "<math>Hello</math>"
- parseHTMLUnsafe testcase namespaces/13, "<math>Hello</math>"
- setHTML testcase namespaces/14, "<math>Hello</math>"
- setHTMLUnsafe testcase namespaces/14, "<math>Hello</math>"
- ShadowRoot.setHTML testcase namespaces/14, "<math>Hello</math>"
- ShadowRoot.setHTMLUnsafe testcase namespaces/14, "<math>Hello</math>"
- parseHTML testcase namespaces/14, "<math>Hello</math>"
- parseHTMLUnsafe testcase namespaces/14, "<math>Hello</math>"
- setHTML testcase namespaces/15, "<p style="bla"></p>"
- setHTMLUnsafe testcase namespaces/15, "<p style="bla"></p>"
- ShadowRoot.setHTML testcase namespaces/15, "<p style="bla"></p>"
- ShadowRoot.setHTMLUnsafe testcase namespaces/15, "<p style="bla"></p>"
- parseHTML testcase namespaces/15, "<p style="bla"></p>"
- parseHTMLUnsafe testcase namespaces/15, "<p style="bla"></p>"
- setHTML testcase namespaces/16, "<p href="bla"></p>"
- setHTMLUnsafe testcase namespaces/16, "<p href="bla"></p>"
- ShadowRoot.setHTML testcase namespaces/16, "<p href="bla"></p>"
- ShadowRoot.setHTMLUnsafe testcase namespaces/16, "<p href="bla"></p>"
- parseHTML testcase namespaces/16, "<p href="bla"></p>"
- parseHTMLUnsafe testcase namespaces/16, "<p href="bla"></p>"
- setHTML testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
- setHTMLUnsafe testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
- ShadowRoot.setHTML testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
- ShadowRoot.setHTMLUnsafe testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
- parseHTML testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
- parseHTMLUnsafe testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
- setHTML testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
- setHTMLUnsafe testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
- ShadowRoot.setHTML testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
- ShadowRoot.setHTMLUnsafe testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
- parseHTML testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
- parseHTMLUnsafe testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
- setHTML testcase xlink-href-html-content/2, "<p href='bla'></p>"
- setHTMLUnsafe testcase xlink-href-html-content/2, "<p href='bla'></p>"
- ShadowRoot.setHTML testcase xlink-href-html-content/2, "<p href='bla'></p>"
- ShadowRoot.setHTMLUnsafe testcase xlink-href-html-content/2, "<p href='bla'></p>"
- parseHTML testcase xlink-href-html-content/2, "<p href='bla'></p>"
- parseHTMLUnsafe testcase xlink-href-html-content/2, "<p href='bla'></p>"
- setHTML testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
- setHTMLUnsafe testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
- ShadowRoot.setHTML testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
- ShadowRoot.setHTMLUnsafe testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
- parseHTML testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
- parseHTMLUnsafe testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
- setHTML testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
- setHTMLUnsafe testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
- ShadowRoot.setHTML testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
- ShadowRoot.setHTMLUnsafe testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
- parseHTML testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
- parseHTMLUnsafe testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
- setHTML testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
- setHTMLUnsafe testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
- ShadowRoot.setHTML testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
- ShadowRoot.setHTMLUnsafe testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
- parseHTML testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
- parseHTMLUnsafe testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
- setHTML testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
- setHTMLUnsafe testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
- ShadowRoot.setHTML testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
- ShadowRoot.setHTMLUnsafe testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
- parseHTML testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
- parseHTMLUnsafe testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
- setHTML testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
- setHTMLUnsafe testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
- ShadowRoot.setHTML testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
- ShadowRoot.setHTMLUnsafe testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
- parseHTML testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
- parseHTMLUnsafe testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
- setHTML testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
- setHTMLUnsafe testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
- ShadowRoot.setHTML testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
- ShadowRoot.setHTMLUnsafe testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
- parseHTML testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
- parseHTMLUnsafe testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
- setHTML testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
- setHTMLUnsafe testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
- ShadowRoot.setHTML testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
- ShadowRoot.setHTMLUnsafe testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
- parseHTML testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
- parseHTMLUnsafe testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
- setHTML testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
- setHTMLUnsafe testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
- ShadowRoot.setHTML testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
- ShadowRoot.setHTMLUnsafe testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
- parseHTML testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
- parseHTMLUnsafe testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
- setHTML testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
- setHTMLUnsafe testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
- ShadowRoot.setHTML testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
- ShadowRoot.setHTMLUnsafe testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
- parseHTML testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
- parseHTMLUnsafe testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
- setHTML testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
- setHTMLUnsafe testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
- ShadowRoot.setHTML testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
- ShadowRoot.setHTMLUnsafe testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
- parseHTML testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
- parseHTMLUnsafe testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
- setHTML testcase element-name-case-mismatch/0, "<div>text</div>"
- setHTMLUnsafe testcase element-name-case-mismatch/0, "<div>text</div>"
- ShadowRoot.setHTML testcase element-name-case-mismatch/0, "<div>text</div>"
- ShadowRoot.setHTMLUnsafe testcase element-name-case-mismatch/0, "<div>text</div>"
- parseHTML testcase element-name-case-mismatch/0, "<div>text</div>"
- parseHTMLUnsafe testcase element-name-case-mismatch/0, "<div>text</div>"
- setHTML testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
- setHTMLUnsafe testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
- ShadowRoot.setHTML testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
- ShadowRoot.setHTMLUnsafe testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
- parseHTML testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
- parseHTMLUnsafe testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
- setHTML testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
- setHTMLUnsafe testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
- ShadowRoot.setHTML testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
- ShadowRoot.setHTMLUnsafe testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
- parseHTML testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
- parseHTMLUnsafe testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
- setHTML testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- setHTMLUnsafe testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- ShadowRoot.setHTML testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- ShadowRoot.setHTMLUnsafe testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- parseHTML testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- parseHTMLUnsafe testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- setHTML testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- setHTMLUnsafe testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- ShadowRoot.setHTML testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- ShadowRoot.setHTMLUnsafe testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- parseHTML testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- parseHTMLUnsafe testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- setHTML testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- setHTMLUnsafe testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- ShadowRoot.setHTML testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- ShadowRoot.setHTMLUnsafe testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- parseHTML testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- parseHTMLUnsafe testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
- setHTML testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
- setHTMLUnsafe testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
- ShadowRoot.setHTML testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
- ShadowRoot.setHTMLUnsafe testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
- parseHTML testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
- parseHTMLUnsafe testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
- setHTML testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
- setHTMLUnsafe testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
- ShadowRoot.setHTML testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
- ShadowRoot.setHTMLUnsafe testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
- parseHTML testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
- parseHTMLUnsafe testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
- setHTML testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
- setHTMLUnsafe testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
- ShadowRoot.setHTML testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
- ShadowRoot.setHTMLUnsafe testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
- parseHTML testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
- parseHTMLUnsafe testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
- setHTML testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
- setHTMLUnsafe testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
- ShadowRoot.setHTML testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
- ShadowRoot.setHTMLUnsafe testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
- parseHTML testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
- parseHTMLUnsafe testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
- setHTML testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
- setHTMLUnsafe testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
- ShadowRoot.setHTML testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
- ShadowRoot.setHTMLUnsafe testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
- parseHTML testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
- parseHTMLUnsafe testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
sanitizer-boolean-defaults.html 3 / 3 passingChrome 2 / 30 failedClean
3 passing subtests
- comments
- data attributes
- javascript URLs
sanitizer-config.html 72 / 72 passingChrome 71 / 720 failedClean
72 passing subtests
- Sanitizer constructor without config.
- Sanitizer constructor with empty config.
- Sanitizer constructor with null as config.
- Sanitizer constructor with undefined as config.
- Sanitizer constructor with config ignore unknown values.
- SanitizerConfig comments field.
- SanitizerConfig dataAttributes field.
- SanitizerConfig javascriptURLs field.
- SanitizerConfig, normalization: elements: ["div"]
- SanitizerConfig, normalization: elements: [{"name":"b"}]
- SanitizerConfig, normalization: elements: [{"name":"b","namespace":null}]
- SanitizerConfig, normalization: elements: [{"name":"b","namespace":""}]
- SanitizerConfig, normalization: elements: [{"name":"p","namespace":"http://www.w3.org/1999/xhtml"}]
- SanitizerConfig, normalization: elements: [{"name":"bla","namespace":"http://fantasy.org/namespace"}]
- SanitizerConfig, normalization: removeElements: ["div"]
- SanitizerConfig, normalization: removeElements: [{"name":"b"}]
- SanitizerConfig, normalization: removeElements: [{"name":"b","namespace":null}]
- SanitizerConfig, normalization: removeElements: [{"name":"b","namespace":""}]
- SanitizerConfig, normalization: removeElements: [{"name":"p","namespace":"http://www.w3.org/1999/xhtml"}]
- SanitizerConfig, normalization: removeElements: [{"name":"bla","namespace":"http://fantasy.org/namespace"}]
- SanitizerConfig, normalization: replaceWithChildrenElements: ["div"]
- SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"b"}]
- SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"b","namespace":null}]
- SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"b","namespace":""}]
- SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"p","namespace":"http://www.w3.org/1999/xhtml"}]
- SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"bla","namespace":"http://fantasy.org/namespace"}]
- SanitizerConfig, normalization: processingInstructions: ["target-1"]
- SanitizerConfig, normalization: processingInstructions: [{"target":"target-1"}]
- SanitizerConfig, normalization: removeProcessingInstructions: ["target-1"]
- SanitizerConfig, normalization: removeProcessingInstructions: [{"target":"target-1"}]
- SanitizerConfig, normalization: attributes: ["href"]
- SanitizerConfig, normalization: attributes: [{"name":"href","namespace":null}]
- SanitizerConfig, normalization: attributes: [{"name":"href","namespace":""}]
- SanitizerConfig, normalization: attributes: [{"name":"href","namespace":"https://www.w3.org/1999/xlink"}]
- SanitizerConfig, normalization: removeAttributes: ["href"]
- SanitizerConfig, normalization: removeAttributes: [{"name":"href","namespace":null}]
- SanitizerConfig, normalization: removeAttributes: [{"name":"href","namespace":""}]
- SanitizerConfig, normalization: removeAttributes: [{"name":"href","namespace":"https://www.w3.org/1999/xlink"}]
- Test elements addition.
- Test elements removal.
- Test elements replacewithchildren.
- Test processingInstructions addition.
- Test processingInstructions removal.
- Test attribute addition.
- Test attribute removal.
- Test attribute-per-element sets (i.e. overwrites).
- Test removeAttribute-per-element sets (i.e. overwrites).
- Both elements and removeElements should not be allowed.
- Both attributes and removeAttributes should not be allowed.
- Both processingInstructions and removeProcessingInstructions should not be allowed.
- config[elements] should not allow duplicates
- config[removeElements] should not allow duplicates
- config[replaceWithChildrenElements] should not allow duplicates
- config[attributes] should not allow duplicates
- config[removeAttributes] should not allow duplicates
- config[processingInstructions] should not allow duplicate targets
- config[removeProcessingInstructions] should not allow duplicate targets
- config[replaceWithChildrenElements] should not allow non-replaceable elements
- config[elements] and config[replaceWithChildrenElements] should not intersect
- config[removeElements] and config[replaceWithChildrenElements] should not intersect
- Duplicates in element[attributes] with config[attributes] should not be allowed.
- Duplicates in element[removeAttributes] with config[attributes] should not be allowed.
- config[attributes] and element[attributes] should not intersect.
- element[removeAttributes] should be a subset of config[attributes]
- element[attributes] with a data attribute must not co-exist with config[dataAttributes] set to true.
- config[attributes] with a data attribute must not co-exist with config[dataAttributes] set to true.
- element[attributes] and element[removeAttributes] should not both exist with config[removeAttributes].
- Duplicates in element[attributes] with config[removeAttributes] should not be allowed.
- Duplicates in element[removeAttributes] with config[removeAttributes] should not be allowed.
- config[removeAttributes] and element[attributes] should not intersect.
- config[removeAttributes] and element[removeAttributes] should not intersect.
- Can not use config[dataAttributes] and config[removeAttributes] together.
sanitizer-custom-elements-constructor.html 12 / 14 passingChrome 12 / 142 failedWith failures
- ¶
FAILsetHTML constructs an allowed CE from the scoped registry
assert_true: Constructor should be called expected true got false
- ¶
FAILsetHTMLUnsafe constructs an allowed CE from the scoped registry
assert_true: Constructor should be called expected true got false
12 passing subtests
- setHTML blocks CE constructor when element is dropped by explicit sanitizer config (removeElements)
- setHTML blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (removeElements)
- setHTML blocks CE constructor when element is dropped by explicit sanitizer config (allowElements)
- setHTML blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (allowElements)
- setHTML blocks CE constructor when element is dropped by explicit sanitizer config (replaceWithChildrenElements)
- setHTML blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (replaceWithChildrenElements)
- setHTMLUnsafe blocks CE constructor when element is dropped by explicit sanitizer config (removeElements)
- setHTMLUnsafe blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (removeElements)
- setHTMLUnsafe blocks CE constructor when element is dropped by explicit sanitizer config (allowElements)
- setHTMLUnsafe blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (allowElements)
- setHTMLUnsafe blocks CE constructor when element is dropped by explicit sanitizer config (replaceWithChildrenElements)
- setHTMLUnsafe blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (replaceWithChildrenElements)
sanitizer-custom-elements-is.html 20 / 20 passingChrome 16 / 200 failedClean
20 passing subtests
- The is= attribute is removed by the default sanitizer config.
- The is= attribute is removed by the global removeAttributes
- The is= attribute is removed by the local removeAttributes
- The is= attribute is removed by the local missing attributes
- The is= attribute is kept when allowed with an empty config.
- The is= attribute is kept when allowed by global attributes.
- The is= attribute is kept when allowed by global removeAttributes.
- The is= attribute is kept when allowed by local attributes.
- parseHTML removes html is= attribute with the default sanitizer config.
- parseHTML removes html is= attribute with global removeAttributes
- parseHTML removes html is= attribute with local removeAttributes
- parseHTML removes html is= attribute with local allow attributes
- parseHTML removes body is= attribute with the default sanitizer config.
- parseHTML removes body is= attribute with global removeAttributes
- parseHTML removes body is= attribute with local removeAttributes
- parseHTML removes body is= attribute with local allow attributes
- parseHTML removes div is= attribute with the default sanitizer config.
- parseHTML removes div is= attribute with global removeAttributes
- parseHTML removes div is= attribute with local removeAttributes
- parseHTML removes div is= attribute with local allow attributes
sanitizer-default-config.html 1 / 1 passingChrome 0 / 10 failedClean
1 passing subtest
- Get the expected default config
sanitizer-duplicate-html-body.html 12 / 12 passingChrome 12 / 120 failedClean
12 passing subtests
- Document.parseHTML testcase 0, "<body><body onload="alert(1)" onclick="alert(2)" class="safe-body" data-test="val"></body>"
- Document.parseHTML testcase 1, "<body id="initial" class="initial"><body id="duplicate" class="duplicate" dir="rtl" onclick="alert(1)"></body>"
- Document.parseHTML testcase 2, "<html lang="en" id="root"><html id="duplicate" dir="rtl" onclick="alert(1)"><body></body>"
- Document.parseHTML testcase 3, "<body><body class="allowed" title="forbidden"></body>"
- Document.parseHTML testcase 4, "<html lang="en" dir="ltr" class="html-cls"><body id="main" class="body-cls" dir="ltr"></body>"
- Document.parseHTML testcase 5, "<html><body><body class="body-cls" data-foo="bar"></body>"
- Document.parseHTMLUnsafe testcase 0, "<body><body data-bad="strip-me" data-good="keep-me"></body>"
- Document.parseHTMLUnsafe testcase 1, "<html data-bad-html="1" data-good-html="2"><body data-bad-body="3" data-good-body="4"></body>"
- Document.parseHTMLUnsafe testcase 2, "<html><body><html data-dup-bad-html="1" data-dup-good-html="2"><body data-dup-bad-body="3" data-dup-good-body="4"></body>"
- Document.parseHTMLUnsafe testcase 3, "<html title="html-title"><body title="body-title"><div title="div-title"></div></body>"
- Fragment setHTML testcase 0, "<body id="test-body" onclick="alert(1)" class="safe-body"></body>"
- Fragment setHTML testcase 1, "<body id="first" class="first"><body id="second" dir="rtl" onclick="alert(1)"></body>"
sanitizer-get.html 9 / 9 passingChrome 9 / 90 failedClean
9 passing subtests
- Sorting of attributes
- Sorting of removeAttributes
- Sorting of elements
- Sorting of removeElements
- Sorting of replaceWithChildrenElements
- Sorting of element's attributes
- Sorting of element's removeAttributes
- Sorting of processingInstructions
- Sorting of removeProcessingInstructions
sanitizer-in-adoption-agency.html 55 / 55 passingChrome 52 / 550 failedClean
55 passing subtests
- Sanitizer Adoption Agency Algorithm testcases
- Testcase #0, "<b><i onclick="alert(1)"><div></b>x", config: "undefined".
- Testcase #1, "<b><div>Text</b></div>", config: "{ "replaceWithChildrenElements": ["b"] }".
- Testcase #2, "<b><i><div>Text</b></div>", config: "{ "replaceWithChildrenElements": ["i"] }".
- Testcase #3, "<b><div>Text</b>", config: "{ "removeElements": ["div"] }".
- Testcase #4, "<b><div><b>x", config: "{ "removeElements": ["div"] }".
- Testcase #5, "<b>1<p>foo</b>bar", config: "{ "replaceWithChildrenElements": ["b"] }".
- Testcase #6, "<b><div>Text</b>", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #7, "<a href="https://web-platform.test/1"><div><a href="https://web-platform.test/2">Click</a></div></a>", config: "{ "removeElements": ["div"] }".
- Testcase #8, "<b><i><p>foo</b>bar</i>", config: "{ "removeElements": ["p"] }".
- Testcase #9, "<b><i><p>foo</b>bar</i>", config: "{ "removeElements": ["i"] }".
- Testcase #10, "<b><i><div>Text</b></i>", config: "{ "removeElements": ["div"], "replaceWithChildrenElements": ["i"] }".
- Testcase #11, "<b><i onclick="alert(1)"><u onclick="alert(2)"><div></b>x", config: "undefined".
- Testcase #12, "<b><em><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #13, "<b><em><s><div>Text</b>after</div>more", config: "{ "replaceWithChildrenElements": ["div", "s"] }".
- Testcase #14, "<b><em><u><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #15, "<b><u><em><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["div", "em"] }".
- Testcase #16, "<b><em><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["div"], "removeElements": ["em"] }".
- Testcase #17, "<b><em><div><p>Text</b>after", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #18, "<b><div><section>Text</b>after", config: "{ "replaceWithChildrenElements": ["div", "section"] }".
- Testcase #19, "<b><div><span>Text</b>after", config: "{ "replaceWithChildrenElements": ["span"] }".
- Testcase #20, "<b><em><div>Text</b>after</div>more", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #21, "<b><div><div><div><div><div><div><div><div><section>Text</b>after", config: "{ "replaceWithChildrenElements": ["section"] }".
- Testcase #22, "<b><div><div><div><div><div><div><div><div><section>Text</b>after", config: "{ "replaceWithChildrenElements": ["section", "b"] }".
- Testcase #23, "<b><div><div><div><div><div><div><div><div><section><span>Text</b>after", config: "{ "replaceWithChildrenElements": ["section", "span"] }".
- Testcase #24, "<b><div><div><div><div><div><div><div><div><section><i><span>Text</b>after", config: "{ "replaceWithChildrenElements": ["section", "span"] }".
- Testcase #25, "<table><b><div>x</b>y", config: "undefined".
- Testcase #26, "<table><b><div>x</b>y", config: "{ "removeElements": ["table"] }".
- Testcase #27, "<table><b><div>x</b>y", config: "{ "replaceWithChildrenElements": ["b"] }".
- Testcase #28, "<table><tbody><b><div>x</b>y", config: "{ "replaceWithChildrenElements": ["tbody"] }".
- Testcase #29, "<table><b><div>x</b>y", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #30, "<b><div>Text</b>after", config: "{ "removeElements": ["b"] }".
- Testcase #31, "<p><b>x</p>y", config: "{ "replaceWithChildrenElements": ["b"] }".
- Testcase #32, "<p><b>x</p>y", config: "{ "removeElements": ["b"] }".
- Testcase #33, "<p><i onclick="1">x</p>y", config: "undefined".
- Testcase #34, "<p><b a="1"><b a="2"><b a="3"><b a="4"></p>x", config: "{ "removeAttributes": ["a"] }".
- Testcase #35, "<b><i><u><p>foo</b>bar", config: "{ "removeElements": ["i"] }".
- Testcase #36, "<b><div><p>Text</b>after", config: "{ "removeElements": ["p"] }".
- Testcase #37, "<b><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["b", "div"] }".
- Testcase #38, "<a href="1">x<div>y<a href="2">z", config: "{ "replaceWithChildrenElements": ["a"] }".
- Testcase #39, "<a href="1">x<div>y<a href="2">z", config: "{ "removeElements": ["a"] }".
- Testcase #40, "<b><span><div>x</b>y", config: "{ "removeElements": ["span"] }".
- Testcase #41, "<b><div><table></b>x", config: "{ "replaceWithChildrenElements": ["b"] }".
- Testcase #42, "<b><i><div>Text</b>after", config: "{ "removeElements": ["div"] }".
- Testcase #43, "<b><i><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["i", "div"] }".
- Testcase #44, "<div><b><p>x</b>y", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #45, "<div><b><p>x</b>y", config: "{ "removeElements": ["div"] }".
- Testcase #46, "<b><u><em><div>Text</b>after</div>more", config: "{ "replaceWithChildrenElements": ["div", "em"] }".
- Testcase #47, "<b><u><em><div>Text</b>after</div>more", config: "{ "replaceWithChildrenElements": ["div", "em"], "removeElements": ["u"] }".
- Testcase #48, "<table><b><div>x</b><input type="hidden">", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #49, "<article><b><i><section><div><div><div><div><div><div><div><div>x</b>y</article>z", config: "undefined".
- Testcase #50, "<article><b><i><section><div><div><div><div><div><div><div><div>x</b>y</article>z", config: "{ "replaceWithChildrenElements": ["section"] }".
- Testcase #51, "<b><div><div><div><div><div><div><div><div>x</b>y", config: "undefined".
- Testcase #52, "<b><div><div><div><div><div><div><div><div>x</b>y", config: "{ "replaceWithChildrenElements": ["b"] }".
- Testcase #53, "<b><u>1<p>foo</b><i>bar</i>baz", config: "{ "replaceWithChildrenElements": ["u"] }".
sanitizer-in-noahs-ark.html 22 / 22 passingChrome 22 / 220 failedClean
22 passing subtests
- Testcase #0, "<p><b title=1>1<b title=2>2<b title=3>3<b title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTML()
- Testcase #0, "<p><b title=1>1<b title=2>2<b title=3>3<b title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTMLUnsafe()
- Testcase #0, "<p><b title=1>1<b title=2>2<b title=3>3<b title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with Document.parseHTML()
- Testcase #1, "<p><b title=1>1<b title=1>2<b title=1>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTML()
- Testcase #1, "<p><b title=1>1<b title=1>2<b title=1>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTMLUnsafe()
- Testcase #1, "<p><b title=1>1<b title=1>2<b title=1>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with Document.parseHTML()
- Testcase #2, "<p><b>1<b>2<b>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTML()
- Testcase #2, "<p><b>1<b>2<b>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTMLUnsafe()
- Testcase #2, "<p><b>1<b>2<b>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with Document.parseHTML()
- Testcase #3, "<p><b title=1>1<b>2<b>3<b>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTML()
- Testcase #3, "<p><b title=1>1<b>2<b>3<b>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTMLUnsafe()
- Testcase #3, "<p><b title=1>1<b>2<b>3<b>4</p>x", config: "{ "removeAttributes": ["title"] }", with Document.parseHTML()
- Testcase #4, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTML()
- Testcase #4, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTMLUnsafe()
- Testcase #4, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with Document.parseHTML()
- Testcase #5, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "attributes": ["class"] }", with setHTML()
- Testcase #5, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "attributes": ["class"] }", with setHTMLUnsafe()
- Testcase #5, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "attributes": ["class"] }", with Document.parseHTML()
- Testcase #6, "<p><b onclick=1>1<b onclick=2>2<b onclick=3>3<b onclick=4>4</p>x", config: "undefined", with setHTML()
- Testcase #6, "<p><b onclick=1>1<b onclick=2>2<b onclick=3>3<b onclick=4>4</p>x", config: "undefined", with Document.parseHTML()
- Testcase #7, "<p><b onclick=1>1<b onclick=1>2<b onclick=1>3<b onclick=1>4</p>x", config: "undefined", with setHTML()
- Testcase #7, "<p><b onclick=1>1<b onclick=1>2<b onclick=1>3<b onclick=1>4</p>x", config: "undefined", with Document.parseHTML()
sanitizer-inert-document.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Test whether setHTML executes the fail handler.
- Test whether setHTMLUnsafe executes the fail handler.
- Test whether setHTML loads the image.
- Test whether setHTMLUnsafe loads the image.
sanitizer-javascript-url.html 1,334 / 1,334 passingChrome 783 / 1,3340 failedClean
1,334 passing subtests are not listed: this file has more than 500 subtests, so only those that did not pass are kept.
sanitizer-mathml-elements.html 84 / 84 passingChrome 75 / 840 failedClean
84 passing subtests
- Element.setHTML [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
- ShadowRoot.setHTML [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
- Document.parseHTML [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
- Element.setHTMLUnsafe [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
- ShadowRoot.setHTMLUnsafe [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
- Document.parseHTMLUnsafe [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
- Element.setHTML [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
- ShadowRoot.setHTML [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
- Document.parseHTML [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
- Element.setHTMLUnsafe [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
- ShadowRoot.setHTMLUnsafe [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
- Document.parseHTMLUnsafe [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
- Element.setHTML [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
- ShadowRoot.setHTML [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
- Document.parseHTML [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
- Element.setHTMLUnsafe [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
- ShadowRoot.setHTMLUnsafe [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
- Document.parseHTMLUnsafe [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
- Element.setHTML [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
- ShadowRoot.setHTML [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
- Document.parseHTML [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
- Element.setHTMLUnsafe [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
- ShadowRoot.setHTMLUnsafe [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
- Document.parseHTMLUnsafe [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
- Element.setHTML [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
- ShadowRoot.setHTML [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
- Document.parseHTML [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
- Element.setHTMLUnsafe [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
- ShadowRoot.setHTMLUnsafe [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
- Document.parseHTMLUnsafe [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
- Element.setHTML [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
- ShadowRoot.setHTML [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
- Document.parseHTML [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
- Element.setHTMLUnsafe [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
- ShadowRoot.setHTMLUnsafe [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
- Document.parseHTMLUnsafe [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
- Element.setHTML [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
- ShadowRoot.setHTML [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
- Document.parseHTML [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
- Element.setHTMLUnsafe [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
- ShadowRoot.setHTMLUnsafe [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
- Document.parseHTMLUnsafe [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
- Element.setHTML [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
- ShadowRoot.setHTML [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
- Document.parseHTML [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
- Element.setHTMLUnsafe [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
- ShadowRoot.setHTMLUnsafe [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
- Document.parseHTMLUnsafe [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
- Element.setHTML [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
- ShadowRoot.setHTML [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
- Document.parseHTML [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
- Element.setHTMLUnsafe [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
- ShadowRoot.setHTMLUnsafe [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
- Document.parseHTMLUnsafe [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
- Element.setHTML [safe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
- ShadowRoot.setHTML [safe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
- Document.parseHTML [safe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
- Element.setHTML [safe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
- ShadowRoot.setHTML [safe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
- Document.parseHTML [safe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
- Element.setHTML [safe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
- ShadowRoot.setHTML [safe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
- Document.parseHTML [safe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
- Element.setHTML [safe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
- ShadowRoot.setHTML [safe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
- Document.parseHTML [safe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
- Element.setHTML [safe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
- ShadowRoot.setHTML [safe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
- Document.parseHTML [safe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
- Element.setHTMLUnsafe [unsafe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
- ShadowRoot.setHTMLUnsafe [unsafe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
- Document.parseHTMLUnsafe [unsafe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
- Element.setHTMLUnsafe [unsafe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
- ShadowRoot.setHTMLUnsafe [unsafe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
- Document.parseHTMLUnsafe [unsafe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
- Element.setHTMLUnsafe [unsafe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
- ShadowRoot.setHTMLUnsafe [unsafe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
- Document.parseHTMLUnsafe [unsafe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
- Element.setHTMLUnsafe [unsafe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
- ShadowRoot.setHTMLUnsafe [unsafe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
- Document.parseHTMLUnsafe [unsafe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
- Element.setHTMLUnsafe [unsafe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
- ShadowRoot.setHTMLUnsafe [unsafe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
- Document.parseHTMLUnsafe [unsafe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
sanitizer-modifiers.html 22 / 22 passingChrome 21 / 220 failedClean
22 passing subtests
- sanitizer.allowAttribute() with global attributes
- sanitizer.allowAttribute() with global removeAttributes
- sanitizer.allowAttribute() with global attributes and elements
- sanitizer.allowAttribute() with global removeAttributes and element's attributes
- sanitizer.allowAttribute() with global removeAttributes and element's removeAttributes
- sanitizer.removeAttribute() with global attributes
- sanitizer.removeAttribute() with global removeAttributes
- sanitizer.removeAttribute() with global attributes and elements
- sanitizer.removeAttribute() with global removeAttributes and element's attributes
- sanitizer.removeAttribute() with global removeAttributes and element's removeAttributes
- sanitizer.removeElement() with global elements
- sanitizer.removeElement() with global removeElements
- sanitizer.replaceElementWithChildren() with global elements
- sanitizer.replaceElementWithChildren() with global removeElements
- sanitizer.allowElement() with global elements
- sanitizer.allowElement() with global removeElements
- sanitizer.allowElement() with global elements and attributes
- sanitizer.allowElement() with global elements and removeAttributes
- sanitizer.replaceElementWithChildren() does not allow non-replaceable elements.
- sanitizer.setJavascriptURLs()
- sanitizer.setComments()
- sanitizer.setDataAttributes()
sanitizer-parseHTML.html 49 / 49 passingChrome 45 / 490 failedClean
49 passing subtests
- parseHTML testcase 0, "text"
- parseHTML testcase 1, "<div>text"
- parseHTML testcase 2, "<div>text"
- parseHTML testcase 3, "<div>text"
- parseHTML testcase 4, "<html onload="3 + 3"><div>a"
- parseHTML testcase 5, "<body><body onload="alert(1)">Hello"
- parseHTML testcase 6, "<!-- a --><html><body>x<!-- b --></body></html><!-- c -->"
- parseHTML testcase 7, "<?a b?><html><body>x<?c d?></body></html><?e f?>"
- parseHTML testcase 8, "x<p>y"
- parseHTML testcase 9, "<noscript><p>x</noscript>y"
- parseHTML testcase 10, "<noscript><p>x</noscript>y"
- parseHTML testcase 11, "<script>hello"
- parseHTML testcase 12, "<html onload="2+2"><body onload="3+3"><div>hello"
- parseHTML testcase 13, "<div data-xyz="1" id="2" title="3">"
- parseHTML testcase 14, "<div>a<!-- xx -->b"
- parseHTML testcase 15, "<html onload="2 + 2"><div>a"
- parseHTML testcase 16, "<br id="document">"
- parseHTML testcase 17, "<br id="document">"
- parseHTML testcase 18, "<p onclick="alert(document.cookie)">Click handler!</p>"
- parseHTML testcase 19, "<p onclick="alert(document.cookie)">Click handler!</p>"
- parseHTML testcase 20, "<noscript><p>x</noscript>y"
- parseHTMLUnsafe testcase 0, "text"
- parseHTMLUnsafe testcase 1, "<div>text"
- parseHTMLUnsafe testcase 2, "<div>text"
- parseHTMLUnsafe testcase 3, "<div>text"
- parseHTMLUnsafe testcase 4, "<html onload="3 + 3"><div>a"
- parseHTMLUnsafe testcase 5, "<body><body onload="alert(1)">Hello"
- parseHTMLUnsafe testcase 6, "<!-- a --><html><body>x<!-- b --></body></html><!-- c -->"
- parseHTMLUnsafe testcase 7, "<?a b?><html><body>x<?c d?></body></html><?e f?>"
- parseHTMLUnsafe testcase 8, "x<p>y"
- parseHTMLUnsafe testcase 9, "<noscript><p>x</noscript>y"
- parseHTMLUnsafe testcase 10, "<noscript><p>x</noscript>y"
- parseHTMLUnsafe testcase 11, "<script>hello"
- parseHTMLUnsafe testcase 12, "<html onload="2+2"><body onload="3+3"><div>hello"
- parseHTMLUnsafe testcase 13, "<div data-xyz="1" id="2" title="3">"
- parseHTMLUnsafe testcase 14, "<div>a<!-- xx -->b"
- parseHTMLUnsafe testcase 15, "<html onload="2 + 2"><div>a"
- parseHTMLUnsafe testcase 16, "<div>a<!-- xx -->b"
- parseHTMLUnsafe testcase 17, "<!-- 1 --><html><body>x<!-- 2 --></body></html><!-- 3 -->"
- parseHTMLUnsafe testcase 18, "a<template>x</template>b"
- parseHTMLUnsafe testcase 19, "<noscript><p>x</noscript>y"
- parseHTMLUnsafe testcase 20, "<head><meta></head><body>x"
- parseHTMLUnsafe testcase 21, "<head></head><body>x<p>y"
- parseHTMLUnsafe testcase 22, "<head></head><meta><body>x"
- parseHTMLUnsafe testcase 23, "<div></div><frameset>"
- parseHTMLUnsafe testcase 24, "<div></div><frameset>"
- parseHTMLUnsafe() without options keeps comments
- parseHTMLUnsafe full document testcase 0, "<!DOCTYPE html> text"
- parseHTML full document testcase 0, "<!DOCTYPE html> text"
sanitizer-processing-instructions.html 63 / 63 passingChrome 63 / 630 failedClean
63 passing subtests
- setHTMLUnsafe testcase agnostic/0, "<?target data?>"
- ShadowRoot.setHTMLUnsafe testcase agnostic/0, "<?target data?>"
- setHTML testcase agnostic/0, "<?target data?>"
- ShadowRoot.setHTML testcase agnostic/0, "<?target data?>"
- parseHTML testcase agnostic/0, "<?target data?>"
- parseHTMLUnsafe testcase agnostic/0, "<?target data?>"
- setHTMLUnsafe testcase agnostic/1, "<?target data?>"
- ShadowRoot.setHTMLUnsafe testcase agnostic/1, "<?target data?>"
- setHTML testcase agnostic/1, "<?target data?>"
- ShadowRoot.setHTML testcase agnostic/1, "<?target data?>"
- parseHTML testcase agnostic/1, "<?target data?>"
- parseHTMLUnsafe testcase agnostic/1, "<?target data?>"
- setHTMLUnsafe testcase agnostic/2, "<?Target data?>"
- ShadowRoot.setHTMLUnsafe testcase agnostic/2, "<?Target data?>"
- setHTML testcase agnostic/2, "<?Target data?>"
- ShadowRoot.setHTML testcase agnostic/2, "<?Target data?>"
- parseHTML testcase agnostic/2, "<?Target data?>"
- parseHTMLUnsafe testcase agnostic/2, "<?Target data?>"
- setHTMLUnsafe testcase agnostic/3, "<?target data?>"
- ShadowRoot.setHTMLUnsafe testcase agnostic/3, "<?target data?>"
- setHTML testcase agnostic/3, "<?target data?>"
- ShadowRoot.setHTML testcase agnostic/3, "<?target data?>"
- parseHTML testcase agnostic/3, "<?target data?>"
- parseHTMLUnsafe testcase agnostic/3, "<?target data?>"
- setHTMLUnsafe testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
- ShadowRoot.setHTMLUnsafe testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
- setHTML testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
- ShadowRoot.setHTML testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
- parseHTML testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
- parseHTMLUnsafe testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
- setHTMLUnsafe testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
- ShadowRoot.setHTMLUnsafe testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
- setHTML testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
- ShadowRoot.setHTML testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
- parseHTML testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
- parseHTMLUnsafe testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
- setHTMLUnsafe testcase agnostic/6, "<div><?target data?></div>"
- ShadowRoot.setHTMLUnsafe testcase agnostic/6, "<div><?target data?></div>"
- setHTML testcase agnostic/6, "<div><?target data?></div>"
- ShadowRoot.setHTML testcase agnostic/6, "<div><?target data?></div>"
- parseHTML testcase agnostic/6, "<div><?target data?></div>"
- parseHTMLUnsafe testcase agnostic/6, "<div><?target data?></div>"
- setHTMLUnsafe testcase agnostic/7, "<div><?unlisted-target data?></div>"
- ShadowRoot.setHTMLUnsafe testcase agnostic/7, "<div><?unlisted-target data?></div>"
- setHTML testcase agnostic/7, "<div><?unlisted-target data?></div>"
- ShadowRoot.setHTML testcase agnostic/7, "<div><?unlisted-target data?></div>"
- parseHTML testcase agnostic/7, "<div><?unlisted-target data?></div>"
- parseHTMLUnsafe testcase agnostic/7, "<div><?unlisted-target data?></div>"
- setHTMLUnsafe testcase unsafe-only/0, "<?target data?>"
- ShadowRoot.setHTMLUnsafe testcase unsafe-only/0, "<?target data?>"
- parseHTMLUnsafe testcase unsafe-only/0, "<?target data?>"
- setHTMLUnsafe testcase unsafe-only/1, "<?target data?>"
- ShadowRoot.setHTMLUnsafe testcase unsafe-only/1, "<?target data?>"
- parseHTMLUnsafe testcase unsafe-only/1, "<?target data?>"
- setHTMLUnsafe testcase unsafe-only/2, "<div><?target data?></div>"
- ShadowRoot.setHTMLUnsafe testcase unsafe-only/2, "<div><?target data?></div>"
- parseHTMLUnsafe testcase unsafe-only/2, "<div><?target data?></div>"
- setHTMLUnsafe testcase unsafe-only/3, "<div><?target data?></div>"
- ShadowRoot.setHTMLUnsafe testcase unsafe-only/3, "<div><?target data?></div>"
- parseHTMLUnsafe testcase unsafe-only/3, "<div><?target data?></div>"
- setHTML testcase safe-only/0, "<div><?target data?></div>"
- ShadowRoot.setHTML testcase safe-only/0, "<div><?target data?></div>"
- parseHTML testcase safe-only/0, "<div><?target data?></div>"
sanitizer-removeUnsafe.html 8 / 8 passingChrome 5 / 80 failedClean
8 passing subtests
- removeUnsafe removes the right elements and attributes
- removeUnsafe with default config
- removeUnsafe sets javascriptURLs to false
- Baseline remove list is namespace specific #0: {"name":"script","namespace":"http://www.w3.org/1999/xhtml"}
- Baseline remove list is namespace specific #1: {"name":"script","namespace":"http://www.w3.org/2000/svg"}
- Baseline remove list is namespace specific #2: {"name":"use","namespace":"http://www.w3.org/2000/svg"}
- Baseline remove list is namespace specific #3: {"name":"use","namespace":"http://www.w3.org/1999/xhtml"}
- Baseline remove list is namespace specific #4: {"name":"script","namespace":"http://www.w3.org/1998/Math/MathML"}
sanitizer-script-tokenizer.html 10 / 10 passingChrome 10 / 100 failedClean
10 passing subtests
- Sanitizer script and raw text tokenizer testcases from sub.dat
- Testcase #0 [setHTML], "<script><img src=x onerror='window.scriptRan=true;'><div>content</div></script>", config: "{}"
- Testcase #1 [setHTML], "<script><img src=x onerror='window.scriptRan=true;'><div>content</div></script>", config: "{ "removeElements": ["script"] }"
- Testcase #2 [setHTMLUnsafe], "<script><b>bold text</b><img src=x></script>", config: "{ "replaceWithChildrenElements": ["script"] }"
- Testcase #3 [setHTMLUnsafe], "<style><img src=x><div>test</div></style>", config: "{ "replaceWithChildrenElements": ["style"] }"
- Testcase #4 [setHTMLUnsafe], "<textarea><img src=x><div>test</div></textarea>", config: "{ "replaceWithChildrenElements": ["textarea"] }"
- Testcase #5 [setHTML], "<script><b>Hello</b></script>", config: "{ "replaceWithChildrenElements": ["script"] }"
- Testcase #6 [setHTMLUnsafe], "<script><b>Hello</b></script>", config: "{ "removeElements": ["script"] }"
- Testcase #7 [setHTMLUnsafe], "<p>before</p><script><b>bold text</b><img src=x></script><p>after</p>", config: "{ "replaceWithChildrenElements": ["script"] }"
- Testcase #8 [setHTML], "<p>before</p><script><b>bold text</b><img src=x></script><p>after</p>", config: "{}"
sanitizer-svg-animate.html 22 / 22 passingChrome 20 / 220 failedClean
22 passing subtests
- setHTML testcase should not retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="href" to="https://example.org/" begin="0s">".
- setHTMLUnsafe testcase should retain attributeName and should animate: "<svg><a href="about:blank"><set attributeName="href" to="https://example.org/" begin="0s">".
- setHTML testcase should not retain attributeName and should not animate: "<svg ><a href="about:blank"><set attributeName="xlink:href" to="https://example.org/" begin="0s">".
- setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg ><a href="about:blank"><set attributeName="xlink:href" to="https://example.org/" begin="0s">".
- setHTML testcase should retain attributeName and should not animate: "<svg><a href="about:blank" hreflang="en"><set attributeName="hreflang" to="https://example.org/" begin="0s">".
- setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a href="about:blank" hreflang="en"><set attributeName="hreflang" to="https://example.org/" begin="0s">".
- setHTML testcase should retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="xref" to="https://example.org/" begin="0s">".
- setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="xref" to="https://example.org/" begin="0s">".
- setHTML testcase should not retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="ylink:href" to="https://example.org/" begin="0s">".
- setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="ylink:href" to="https://example.org/" begin="0s">".
- setHTML testcase should not retain attributeName and should not animate: "<svg><a xmlns:zlink="https://www.w3.org/1999/xlink" href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
- setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a xmlns:zlink="https://www.w3.org/1999/xlink" href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
- setHTML testcase should not retain attributeName and should not animate: "<svg xmlns:zlink="https://www.w3.org/1999/xlink"><a href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
- setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg xmlns:zlink="https://www.w3.org/1999/xlink"><a href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
- setHTML testcase should not retain attributeName and should not animate: "<svg><a xmlns:zlink="https://www.w3.org/1999/xlink" xlink:href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
- setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a xmlns:zlink="https://www.w3.org/1999/xlink" xlink:href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
- setHTML testcase should not retain attributeName and should not animate: "<svg xmlns:zlink="https://www.w3.org/1999/xlink"><a xlink:href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
- setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg xmlns:zlink="https://www.w3.org/1999/xlink"><a xlink:href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
- setHTML testcase should retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="xlink:href:x" to="https://example.org/" begin="0s">".
- setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="xlink:href:x" to="https://example.org/" begin="0s">".
- setHTML testcase should retain attributeName and should not animate: "<svg xmlns:xlink="http://www.w3.org/1999/xlink"><a id="foo"><set attributeName="xlink:href:x" to="javascript:alert()" begin="0s"></set></a></svg>".
- setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg xmlns:xlink="http://www.w3.org/1999/xlink"><a id="foo"><set attributeName="xlink:href:x" to="javascript:alert()" begin="0s"></set></a></svg>".
sethtml-custom-element-reactions.html 4 / 8 passingChrome 4 / 84 failedWith failures
- ¶
FAILElement.setHTML with a sanitizer runs disconnectedCallback for the replaced children before returning
assert_array_equals: expected property 0 to be "constructed" but got "disconnected" (expected array ["constructed", "connected", "disconnected"] got ["disconnected", "constructed", "connected"])
- ¶
FAILElement.setHTMLUnsafe with a sanitizer runs disconnectedCallback for the replaced children before returning
assert_array_equals: expected property 0 to be "constructed" but got "disconnected" (expected array ["constructed", "connected", "disconnected"] got ["disconnected", "constructed", "connected"])
- ¶
FAILShadowRoot.setHTML with a sanitizer runs disconnectedCallback for the replaced children before returning
assert_array_equals: expected property 0 to be "constructed" but got "disconnected" (expected array ["constructed", "connected", "disconnected"] got ["disconnected", "constructed", "connected"])
- ¶
FAILShadowRoot.setHTMLUnsafe with a sanitizer runs disconnectedCallback for the replaced children before returning
assert_array_equals: expected property 0 to be "constructed" but got "disconnected" (expected array ["constructed", "connected", "disconnected"] got ["disconnected", "constructed", "connected"])
4 passing subtests
- Element.setHTML with a sanitizer runs custom element reactions before returning
- Element.setHTMLUnsafe with a sanitizer runs custom element reactions before returning
- ShadowRoot.setHTML with a sanitizer runs custom element reactions before returning
- ShadowRoot.setHTMLUnsafe with a sanitizer runs custom element reactions before returning
sethtml-form-owner.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Without a sanitizer, the input's form owner is the parsed form
- With the form replaced with its children, the input has no form owner
- parseHTMLUnsafe(): without a sanitizer, the input's form owner is the parsed form
- parseHTMLUnsafe(): with the form replaced with its children, the input has no form owner
sethtml-noscript.html 6 / 6 passingChrome 3 / 60 failedClean
6 passing subtests
- setHTMLUnsafe() parses noscript as raw text (no options)
- setHTMLUnsafe() parses noscript as raw text (empty options)
- setHTMLUnsafe() parses noscript as raw text (sanitizer: undefined)
- setHTMLUnsafe() parses noscript as raw text (empty sanitizer config)
- setHTML() parses noscript as raw text when noscript is allowed
- setHTML() removes noscript with its raw text content by default
sethtml-replace-with-children.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- setHTML: children of a replaced element get the target's node document
- setHTML: a declarative shadow root inside a replaced element is not attached
- setHTMLUnsafe: children of a replaced element get the target's node document
- setHTMLUnsafe: a declarative shadow root inside a replaced element is not attached
- setHTMLUnsafe: a custom element inside a replaced element is constructed and connected to the target
- setHTMLUnsafe: a custom element inside a foster-parented replaced element is connected before the table
sethtml-safety.html 33 / 33 passingChrome 33 / 330 failedClean
33 passing subtests
- wrapper
- Testcase #0, setHTML("test").
- Testcase #1, setHTML("<p>Hello</p>").
- Testcase #2, setHTML("<div>Hello<script>World</script>xxx").
- Testcase #3, setHTML("<div>Hello<script>World</script>xxx").
- Testcase #4, setHTML("<svg>Hello<script>World</script>xxx").
- Testcase #5, setHTML("<a href="https://web-platform.test/" onclick="2+2" one="two">").
- Testcase #6, setHTML("<a href="https://web-platform.test/" onclick="2+2" one="two">").
- Testcase #7, setHTML("<img src="https://web-platform.test/test-image" onclick="2+2" one="two">").
- Testcase #8, setHTML("<p data-x="1" data-y="2" data-z="3">").
- Testcase #9, setHTML("<div><base href="https://example.org/"></base></div>").
- Testcase #10, setHTML("<div><embed src="https://example.org/"></embed></div>").
- Testcase #11, setHTML("<div><iframe src="https://example.org/"></iframe></div>").
- Testcase #12, setHTML("<div><object data="https://example.org/"></object></div>").
- Testcase #13, setHTML("<div><script src="https://example.org/"></script></div>").
- Testcase #14, setHTML("<svg><script src="https://example.org/"></script></svg>").
- Testcase #15, setHTML("<svg><use href="https://example.org/"></use></svg>").
- Testcase #0, setHTMLUnsafe("test").
- Testcase #1, setHTMLUnsafe("<p>Hello</p>").
- Testcase #2, setHTMLUnsafe("<div>Hello<script>World</script>xxx").
- Testcase #3, setHTMLUnsafe("<div>Hello<script>World</script>xxx").
- Testcase #4, setHTMLUnsafe("<svg>Hello<script>World</script>xxx").
- Testcase #5, setHTMLUnsafe("<a href="https://web-platform.test/" onclick="2+2" one="two">").
- Testcase #6, setHTMLUnsafe("<a href="https://web-platform.test/" onclick="2+2" one="two">").
- Testcase #7, setHTMLUnsafe("<img src="https://web-platform.test/test-image" onclick="2+2" one="two">").
- Testcase #8, setHTMLUnsafe("<p data-x="1" data-y="2" data-z="3">").
- Testcase #9, setHTMLUnsafe("<div><base href="https://example.org/"></base></div>").
- Testcase #10, setHTMLUnsafe("<div><embed src="https://example.org/"></embed></div>").
- Testcase #11, setHTMLUnsafe("<div><iframe src="https://example.org/"></iframe></div>").
- Testcase #12, setHTMLUnsafe("<div><object data="https://example.org/"></object></div>").
- Testcase #13, setHTMLUnsafe("<div><script src="https://example.org/"></script></div>").
- Testcase #14, setHTMLUnsafe("<svg><script src="https://example.org/"></script></svg>").
- Testcase #15, setHTMLUnsafe("<svg><use href="https://example.org/"></use></svg>").
sethtml-scoped-custom-element-registry.html 3 / 9 passingChrome 3 / 96 failedWith failures
- ¶
FAILsetHTML uses the target's scoped custom element registry
assert_array_equals: lengths differ, expected array ["constructed", "connected"] length 2, got [] length 0
- ¶
FAILsetHTML with replaceWithChildrenElements preserves the scoped custom element registry for children
assert_array_equals: lengths differ, expected array ["constructed", "connected"] length 2, got [] length 0
- ¶
FAILsetHTML on a shadow root uses the shadow root's registry, not the host's
assert_array_equals: lengths differ, expected array ["shadow-registry"] length 1, got [] length 0
- ¶
FAILsetHTML constructs nested custom elements with the scoped registry
assert_array_equals: lengths differ, expected array ["constructed"] length 1, got [] length 0
- ¶
FAILsetHTMLUnsafe with a sanitizer uses the target's scoped custom element registry
assert_array_equals: lengths differ, expected array ["constructed", "connected"] length 2, got [] length 0
- ¶
FAILsetHTMLUnsafe with replaceWithChildrenElements preserves the scoped custom element registry for children
assert_array_equals: lengths differ, expected array ["constructed", "connected"] length 2, got [] length 0
3 passing subtests
- setHTMLUnsafe uses the target's scoped custom element registry
- setHTMLUnsafe on a shadow root uses the shadow root's registry, not the host's
- setHTMLUnsafe constructs nested custom elements with the scoped registry
sethtml-tree-construction.html 126 / 126 passingChrome 126 / 1260 failedClean
126 passing subtests
- wrapper
- Non-string input: empty object.
- Non-string input: number.
- Non-string input: octal number.
- Non-string input: expression.
- Non-string input: undefined.
- Testcase #0, "test", config: "undefined".
- Testcase #1, "<b>bla</b>", config: "undefined".
- Testcase #2, "<a<embla", config: "undefined".
- Testcase #3, "<html><head></head><body>test</body></html>", config: "undefined".
- Testcase #4, "<div>test", config: "undefined".
- Testcase #5, "<script>alert('i am a test')</script>", config: "undefined".
- Testcase #6, "hello<script>alert('i am a test')</script>", config: "undefined".
- Testcase #7, "<div><b>hello<script>alert('i am a test')</script>", config: "undefined".
- Testcase #8, "<p onclick='a= 123'>Click.</p>", config: "undefined".
- Testcase #9, "<plaintext><p>text</p>", config: "{}".
- Testcase #10, "<xmp>TEXT</xmp>", config: "{}".
- Testcase #11, "test", config: "{ "test": 123 }".
- Testcase #12, "test", config: "{ "removeElements": [] }".
- Testcase #13, "<div>test</div><p>bla", config: "{ "removeElements": ["div"] }".
- Testcase #14, "<custom-element>test1</custom-element>bla", config: "undefined".
- Testcase #15, "<custom-element>test3</custom-element>bla", config: "{ "elements": ["custom-element"] }".
- Testcase #16, "<custom-element>test5</custom-element>bla", config: "{ "removeElements": ["custom-element"] }".
- Testcase #17, "<script>alert('i am a test')</script>", config: "{ "removeElements": ["script"] }".
- Testcase #18, "<div>balabala<i>test</i></div><test-element>t</test-element>", config: "{ "removeElements": ["test-element", "i"] }".
- Testcase #19, "<div>balabala<i>i</i><p>t</p></div>", config: "{ "removeElements": ["dl", "p"] }".
- Testcase #20, "<div>test<div>p</div>tt<p>div</p></div>", config: "{ "elements": ["p"], "replaceWithChildrenElements": ["div"] }".
- Testcase #21, "<div>test</div><p>bla", config: "{ "removeElements": ["div"], "elements": ["div"] }".
- Testcase #22, "<p id='test'>Click.</p>", config: "{ "removeAttributes": [] }".
- Testcase #23, "<p id='test'>Click.</p>", config: "{ "removeAttributes": ["id"] }".
- Testcase #24, "<p id='test'>Click.</p>", config: "{ "elements": ["p"], "removeAttributes": ["id"] }".
- Testcase #25, "<p id='p' data-attribute-with-dashes='123'>Click.</p><script>document.getElementById('p').dataset.attributeWithDashes=123;</script>", config: "{ "elements": ["p"], "removeAttributes": ["data-attribute-with-dashes"] }".
- Testcase #26, "<p id='p' title='p'>P</p><div id='div' title='div'>DIV</div>", config: "{ "elements": [ { "name": "p", "attributes": ["title"] }, { "name": "div", "attributes": ["id"] } ]}".
- Testcase #27, "<p id='p' title='p'>P</p><div id='div' title='div'>DIV</div>", config: "{ "elements": [ { "name": "p", "removeAttributes": ["title"] }, { "name": "div", "removeAttributes": ["id"] } ] }".
- Testcase #28, "<div id='div' title='div'>DIV</div>", config: "{ "elements": [{ "name": "div", "attributes": ["id"], "removeAttributes": ["id"] }]}".
- Testcase #29, "<div id='div' title='div'>DIV</div>", config: "{ "elements": [{ "name": "div", "attributes": ["id", "title"] }], "attributes": []}".
- Testcase #30, "<div id='div' title='div'>DIV</div>", config: "{ "elements": [{ "name": "div", "attributes": [] }], "removeAttributes": ["id", "title"] }".
- Testcase #31, "<div id='div' title='div'>DIV</div>", config: "{ "elements": [{ "name": "div", "removeAttributes": ["id", "title"] }], "attributes": ["id", "title"] }".
- Testcase #32, "<p id='test' onclick='a= 123'>Click.</p>", config: "{ "attributes": ["id"] }".
- Testcase #33, "<p style='color: black'>Click.</p>", config: "{ "removeAttributes": ["style"], "attributes": ["style"] }".
- Testcase #34, "<template><script>test</script><div>hello</div></template>", config: "{ "elements": ["template", "div"] }".
- Testcase #35, "<a href='javascript:evil.com'>Click.</a>", config: "undefined".
- Testcase #36, "<a href=' javascript:evil.com'>Click.</a>", config: "undefined".
- Testcase #37, "<a href='http:evil.com'>Click.</a>", config: "undefined".
- Testcase #38, "<area href='javascript:evil.com'>", config: "{}".
- Testcase #39, "<area href=' javascript:evil.com'>", config: "{}".
- Testcase #40, "<area href='http:evil.com'>", config: "{}".
- Testcase #41, "<form action='javascript:evil.com'>Click.</form>", config: "{}".
- Testcase #42, "<form action=' javascript:evil.com'>Click.</form>", config: "{}".
- Testcase #43, "<form action='http:evil.com'>Click.</form>", config: "{}".
- Testcase #44, "<input formaction='javascript:evil.com'>", config: "{}".
- Testcase #45, "<input formaction=' javascript:evil.com'>", config: "{}".
- Testcase #46, "<input formaction='http:evil.com'>", config: "{}".
- Testcase #47, "<button formaction='javascript:evil.com'>Click.</button>", config: "{}".
- Testcase #48, "<button formaction=' javascript:evil.com'>Click.</button>", config: "{}".
- Testcase #49, "<button formaction='http:evil.com'>Click.</button>", config: "{}".
- Testcase #50, "<p>Some text</p></body><!-- 1 --></html><!-- 2 --><p>Some more text</p>", config: "undefined".
- Testcase #51, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>", config: "undefined".
- Testcase #52, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>", config: "{ "comments": true }".
- Testcase #53, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>", config: "{ "comments": false }".
- Testcase #54, "<p>comment<!-- hello -->in<!-- </p> -->text</p>", config: "undefined".
- Testcase #55, "<p>comment<!-- hello -->in<!-- </p> -->text</p>", config: "{ "comments": true }".
- Testcase #56, "<p>comment<!-- hello -->in<!-- </p> -->text</p>", config: "{ "comments": false }".
- Testcase #57, "<svg></svg>", config: "{ "elements": ["svg"] }".
- Testcase #58, "<div><svg></svg></div>", config: "{ "elements": ["div", "svg"] }".
- Testcase #59, "<div>balabala<dl>test</dl></div>", config: "{ "removeElements": ["I", "DL"] }".
- Testcase #60, "<div>balabala<dl>test</dl></div>", config: "{ "removeElements": ["i", "dl"] }".
- Testcase #61, "<DIV>balabala<DL>test</DL></DIV>", config: "{ "removeElements": ["i", "dl"] }".
- Testcase #62, "<p id="test">Click.</p>", config: "{ "removeAttributes": ["ID"] }".
- Testcase #63, "<p ID="test">Click.</p>", config: "{ "removeAttributes": ["ID"] }".
- Testcase #64, "<p ID="test">Click.</p>", config: "{ "removeAttributes": ["id"] }".
- Testcase #65, "<div>balabala<i>test</i></div><test>t</test><custom-element>custom-element</custom-element>", config: "{ "removeElements": [123, "test", "i", "custom-element"] }".
- Testcase #66, "<div>balabala<i>test</i></div><test>t</test><custom-element>custom-element</custom-element>", config: "{ "replaceWithChildrenElements": [123, "test", "i", "custom-element"], "elements": ["div"]}".
- Testcase #67, "<div>test<div>p</div>tt<p>div</p></div><test>test</test>", config: "{ "elements": ["p", "test"], "replaceWithChildrenElements": ["div"] }".
- Testcase #68, "test<div>p</div>tt<p>div</p><test>test</test>", config: "{ "elements": ["p", "test"], "replaceWithChildrenElements": ["div"] }".
- Testcase #69, "<div hello='1' world='2'><b hello='3' world='4'>", config: "{ "elements": ["div", "b"], "attributes": ["hello", "world"] }".
- Testcase #70, "<div hello='1' world='2'><b hello='3' world='4'>", config: "{ "elements": ["div", "b"], "removeAttributes": ["hello", "world"] }".
- Testcase #71, "<table><div><td>", config: "{ "replaceWithChildrenElements": ["table"] }".
- Testcase #72, "<template><div>Hello</div></template>", config: "{}".
- Testcase #73, "<template><div>Hello</div></template>", config: "{ "elements": ["div"]}".
- Testcase #74, "<template><div>Hello</div></template>", config: "{ "elements": ["template"]}".
- Testcase #75, "<template><div>Hello</div></template>", config: "{ "elements": ["div", "template"]}".
- Testcase #76, "<template><div>Hello</div></template>", config: "{ "elements": ["template"], "replaceWithChildrenElements": ["div"]}".
- Testcase #77, "<a href="about:blank" rel="opener">Click.</a>", config: "undefined".
- Testcase #78, "<div><b><em><foo><foob><fooc><aside></b></em></div>", config: "{ "removeElements": ["em"] }".
- Testcase #79, "<template><b>Hello</b></template>", config: "{ "replaceWithChildrenElements": ["template"] }".
- Testcase #80, "<div><template><b>Hello</b></template>after</div>", config: "{ "replaceWithChildrenElements": ["template"] }".
- Testcase #81, "<b>before</b><template><span>A</span><template><i>nested</i></template></template><b>after</b>", config: "{ "replaceWithChildrenElements": ["template"] }".
- Testcase #82, "<table><template><span>A</span></template><td>cell</td></table>", config: "{ "replaceWithChildrenElements": ["template"] }".
- Testcase #83, "<div><div><b>Hello</b></div>after</div>", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #84, "<div><table><tr>foster<td>cell</td></tr></table></div>", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #85, "<table><div><span>Content</span></div><td>cell</td></table>", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #86, "<table><tr><div><span>Content</span></div><td>cell</td></tr></table>", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #87, "<table>x<tr><td>y", config: "{ "replaceWithChildrenElements": ["table"] }".
- Testcase #88, "<table><tr><td>y</td></tr>x</table>", config: "{ "replaceWithChildrenElements": ["table"] }".
- Testcase #89, "<table><tr><td>y</td></tr><div>x</div></table>", config: "{ "replaceWithChildrenElements": ["table"] }".
- Testcase #90, "a<table><tr><td>y</td></tr>b</table>c", config: "{ "replaceWithChildrenElements": ["table"] }".
- Testcase #91, "<table><tbody><tr><td>y</td></tr>x</table>", config: "{ "replaceWithChildrenElements": ["table", "tbody"] }".
- Testcase #92, "<table><tr><div>x</div><td>y", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #93, "<table>a<b>y</b>c<tr><td>z", config: "{ "replaceWithChildrenElements": ["b"] }".
- Testcase #94, "<table><template>x</template><tr><td>y", config: "{ "replaceWithChildrenElements": ["template"] }".
- Testcase #95, "<template><table>x</table></template>", config: "{ "replaceWithChildrenElements": ["table"] }".
- Testcase #96, "a<table>b<tr><td>c</table>d", config: "{ "removeElements": ["table"] }".
- Testcase #97, "<table><tr>x<td>y", config: "{ "removeElements": ["tr"] }".
- Testcase #98, "<div><table>x", config: "{ "removeElements": ["div"] }".
- Testcase #99, "<b><table>x", config: "{ "replaceWithChildrenElements": ["b"] }".
- Testcase #100, "<b><table><div>x", config: "{ "replaceWithChildrenElements": ["b"], "removeElements": ["table"] }".
- Testcase #101, "<table><div><input type="hidden"><td>x", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #102, "<table><div><template>t</template><td>x", config: "{ "replaceWithChildrenElements": ["div"] }".
- Testcase #103, "<table><div><!-- c --><td>x", config: "{ "replaceWithChildrenElements": ["div"], "comments": true }".
- Testcase #104, "<table><tr><td>y", config: "{ "replaceWithChildrenElements": ["tr"] }".
- Testcase #105, "<table><!-- x --><tr><td>y", config: "{ "replaceWithChildrenElements": ["table"], "comments": true }".
- Testcase #106, "<template><!-- x --></template>", config: "{ "comments": true }".
- Testcase #107, "<td>a</td><div>b</div>", config: "{ "replaceWithChildrenElements": ["td"] }".
- Testcase #108, "<select><option>a<option>b</select>", config: "{ "replaceWithChildrenElements": ["option"] }".
- Testcase #109, "<select><option>a</option></select>", config: "{ "replaceWithChildrenElements": ["select"] }".
- Testcase #110, "<title>a&b<b></title>c", config: "{ "replaceWithChildrenElements": ["title"] }".
- Testcase #111, "<plaintext>x</plaintext>y", config: "{ "replaceWithChildrenElements": ["plaintext"] }".
- Testcase #112, "<xmp><b>x</xmp>y", config: "{ "removeElements": ["xmp"] }".
- Testcase #113, "<image src="x">", config: "{ "removeElements": ["image"] }".
- Testcase #114, "<image src="x">", config: "{ "elements": ["img"] }".
- Testcase #115, "<table><tr><td>x", config: "{ "replaceWithChildrenElements": ["tbody"] }".
- Testcase #116, "<table><col></table>", config: "{ "replaceWithChildrenElements": ["colgroup"] }".
- Testcase #117, "<p>a<div>b</div>c", config: "{ "removeElements": ["p"] }".
- Testcase #118, "<svg><g><rect></g></svg>", config: "{ "replaceWithChildrenElements": [{ "name": "g", "namespace": "http://www.w3.org/2000/svg" }] }".
- Testcase #119, "<svg><foreignObject><div>x</div></foreignObject></svg>", config: "{ "replaceWithChildrenElements": [{ "name": "foreignObject", "namespace": "http://www.w3.org/2000/svg" }] }".
sethtml-with-custom-elements.html 19 / 24 passingChrome 19 / 245 failedWith failures
- ¶
FAILCustom element that is allowed, on a disconnected element.
assert_equals: constructed before setHTML() returns expected 1 but got 0
- ¶
FAILCustom element inside an element that is replaced with its children, on a disconnected element, setHTML().
assert_equals: constructed before setHTML() returns expected 1 but got 0
- ¶
FAILCustom element inside an element that is replaced with its children uses the target's scoped registry, setHTML().
assert_equals: element uses the scoped registry expected object "[object CustomElementRegistry]" but got object "[object CustomElementRegistry]"
- ¶
FAILCustom element inside an element that is replaced with its children, on a disconnected element, setHTMLUnsafe().
assert_equals: constructed before setHTMLUnsafe() returns expected 1 but got 0
- ¶
FAILCustom element inside an element that is replaced with its children uses the target's scoped registry, setHTMLUnsafe().
assert_equals: element uses the scoped registry expected object "[object CustomElementRegistry]" but got object "[object CustomElementRegistry]"
19 passing subtests
- Custom element that is removed during sanitization.
- Custom element that is allowed.
- Custom element on a disconnected element, setHTMLUnsafe().
- Custom element inside nested elements that are replaced with their children, setHTML().
- Custom element inside nested elements that are replaced with their children, setHTMLUnsafe().
- Custom element in a declarative shadow root on a removed host is not constructed.
- Custom element inside a removed element is not constructed.
- attributeChangedCallback only fires for attributes the sanitizer keeps.
- Custom element via is-attribute, where is attribute is not default-allowed.
- Custom element via is-attribute, where is attribute is removed.
- Custom element via is-attribute, where is attribute is removed but the custom element would have been allowed.
- Custom element with an is-attribute, where the is=-attribute is blocked.
- Custom element via is-attribute, where is attribute is allowed, but the element is not.
- Custom element via is-attribute, where is attribute is allowed, but the element is removed.
- Custom element via is-attribute, where is attribute is allowed, but the element is replaced.
- Custom element via is-attribute with unsafe, where is attribute is not default-allowed.
- Sanity check, that is= processing still works when allowed.
- Custom element via is-attribute on script element, where is attribute is not allowed.
- Custom element via is-attribute on html element, where is attribute is not default-allowed.
sethtml-with-declarative-shadow-root.html 13 / 14 passingChrome 14 / 141 failedWith failures
- ¶
FAILshadowRoot.referenceTarget does not propagate to the shadow root when shadowrootreferencetarget is removed by sanitizer
assert_equals: expected (object) null but got (undefined) undefined
13 passing subtests
- template with shadowrootmode should be removed by safe default
- template with shadowrootmode should not be removed in unsafe mode
- template with shadowrootmode should not be processed when <template> is forbidden
- template with shadowrootmode should be processed as a normal template when the shadowRootMode attribute is forbidden
- template with shadowrootmode replaced with its children has no children in the tree
- declarative shadow root on a host replaced with its children is not attached to the parent; the template is kept as a regular template
- declarative shadow root on a removed host is dropped with it
- template with shadowrootmode in removeElements does not attach a shadow root (setHTMLUnsafe)
- shadowRoot.delegatesFocus does not propagate to the shadow root when shadowrootdelegatesfocus is removed by sanitizer
- shadowRoot.serializable does not propagate to the shadow root when shadowrootserializable is removed by sanitizer
- shadowRoot.clonable does not propagate to the shadow root when shadowrootclonable is removed by sanitizer
- shadowRoot.customElementRegistry does not propagate to the shadow root when shadowrootcustomelementregistry is removed by sanitizer
- shadowRoot.adoptedStyleSheets does not propagate to the shadow root when shadowrootadoptedstylesheets is removed by sanitizer
sethtml-with-trustedhtml-createParserOptions.html 166 / 166 passingChrome 166 / 1660 failedClean
166 passing subtests
- ShadowRoot.setHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
- ShadowRoot.setHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
- ShadowRoot.setHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
- ShadowRoot.setHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- ShadowRoot.setHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- ShadowRoot.appendHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
- ShadowRoot.appendHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
- ShadowRoot.appendHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
- ShadowRoot.appendHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- ShadowRoot.appendHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- ShadowRoot.prependHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
- ShadowRoot.prependHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
- ShadowRoot.prependHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
- ShadowRoot.prependHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- ShadowRoot.prependHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- ShadowRoot.innerHTML: sending TrustedHTML applies sanitizer in default policy createParserOptions
- ShadowRoot.innerHTML: sending TrustedHTML does not call default policy createHTML
- ShadowRoot.innerHTML: exception in default createParserOptions rethrows when TrustedHTML is passed
- ShadowRoot.innerHTML: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- ShadowRoot.innerHTML: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- ShadowRoot.setHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
- ShadowRoot.setHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
- ShadowRoot.setHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
- ShadowRoot.setHTMLUnsafe: default policy createParserOptions can disable runScripts
- ShadowRoot.setHTMLUnsafe: default policy createParserOptions can enable runScripts
- ShadowRoot.setHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
- ShadowRoot.appendHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
- ShadowRoot.appendHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
- ShadowRoot.appendHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
- ShadowRoot.appendHTMLUnsafe: default policy createParserOptions can disable runScripts
- ShadowRoot.appendHTMLUnsafe: default policy createParserOptions can enable runScripts
- ShadowRoot.appendHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
- ShadowRoot.prependHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
- ShadowRoot.prependHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
- ShadowRoot.prependHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
- ShadowRoot.prependHTMLUnsafe: default policy createParserOptions can disable runScripts
- ShadowRoot.prependHTMLUnsafe: default policy createParserOptions can enable runScripts
- ShadowRoot.prependHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
- ShadowRoot.innerHTML: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
- Element.setHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.setHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
- Element.setHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.setHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.setHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.appendHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.appendHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
- Element.appendHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.appendHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.appendHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.prependHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.prependHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
- Element.prependHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.prependHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.prependHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.beforeHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.beforeHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
- Element.beforeHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.beforeHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.beforeHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.afterHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.afterHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
- Element.afterHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.afterHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.afterHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.replaceWithHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.replaceWithHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
- Element.replaceWithHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.replaceWithHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.replaceWithHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.innerHTML: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.innerHTML: sending TrustedHTML does not call default policy createHTML
- Element.innerHTML: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.innerHTML: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.innerHTML: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.outerHTML: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.outerHTML: sending TrustedHTML does not call default policy createHTML
- Element.outerHTML: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.outerHTML: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.outerHTML: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.createContextualFragment: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.createContextualFragment: sending TrustedHTML does not call default policy createHTML
- Element.createContextualFragment: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.createContextualFragment: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.createContextualFragment: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.afterbegin: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.afterbegin: sending TrustedHTML does not call default policy createHTML
- Element.afterbegin: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.afterbegin: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.afterbegin: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.beforeend: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.beforeend: sending TrustedHTML does not call default policy createHTML
- Element.beforeend: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.beforeend: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.beforeend: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.beforebegin: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.beforebegin: sending TrustedHTML does not call default policy createHTML
- Element.beforebegin: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.beforebegin: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.beforebegin: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.afterend: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.afterend: sending TrustedHTML does not call default policy createHTML
- Element.afterend: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.afterend: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.afterend: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.parseHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
- Element.parseHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
- Element.parseHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
- Element.parseHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
- Element.parseHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
- Element.setHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
- Element.setHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
- Element.setHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
- Element.setHTMLUnsafe: default policy createParserOptions can disable runScripts
- Element.setHTMLUnsafe: default policy createParserOptions can enable runScripts
- Element.setHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
- Element.appendHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
- Element.appendHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
- Element.appendHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
- Element.appendHTMLUnsafe: default policy createParserOptions can disable runScripts
- Element.appendHTMLUnsafe: default policy createParserOptions can enable runScripts
- Element.appendHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
- Element.prependHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
- Element.prependHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
- Element.prependHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
- Element.prependHTMLUnsafe: default policy createParserOptions can disable runScripts
- Element.prependHTMLUnsafe: default policy createParserOptions can enable runScripts
- Element.prependHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
- Element.beforeHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
- Element.beforeHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
- Element.beforeHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
- Element.beforeHTMLUnsafe: default policy createParserOptions can disable runScripts
- Element.beforeHTMLUnsafe: default policy createParserOptions can enable runScripts
- Element.beforeHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
- Element.afterHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
- Element.afterHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
- Element.afterHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
- Element.afterHTMLUnsafe: default policy createParserOptions can disable runScripts
- Element.afterHTMLUnsafe: default policy createParserOptions can enable runScripts
- Element.afterHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
- Element.replaceWithHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
- Element.replaceWithHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
- Element.replaceWithHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
- Element.replaceWithHTMLUnsafe: default policy createParserOptions can disable runScripts
- Element.replaceWithHTMLUnsafe: default policy createParserOptions can enable runScripts
- Element.replaceWithHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
- Element.innerHTML: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
- Element.outerHTML: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
- Element.afterbegin: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
- Element.beforeend: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
- Element.beforebegin: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
- Element.afterend: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
- Element: createContextualFragment with TrustedHTML and createParserOptions(runScripts=false) does not run scripts
- Element: createContextualFragment with TrustedHTML runs scripts by default
- Document.parseHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
- Document.parseHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
- Document.parseHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
- innerHTML on XML document does not call createParserOptions or throw TypeError when TrustedHTML is passed
- outerHTML on XML document does not call createParserOptions or throw TypeError when TrustedHTML is passed
- insertAdjacentHTML on XML document does not call createParserOptions or throw TypeError when TrustedHTML is passed
- createContextualFragment on XML document does not call createParserOptions or throw TypeError when TrustedHTML is passed
- setHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
- appendHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
- prependHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
- beforeHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
- afterHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
- replaceWithHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
sethtml-with-trustedtypes-createParserOptions-null.html 2 / 2 passingChrome 0 / 20 failedClean
2 passing subtests
- Named policy createParserOptions returning null throws TypeError
- Named policy createParserOptions returning undefined throws TypeError
sethtml-with-trustedtypes-createParserOptions-report-only.html 134 / 134 passingChrome 134 / 1340 failedClean
134 passing subtests
- Element.setHTMLUnsafe: without default policy, report-only does not throw and reports violation
- Element.appendHTMLUnsafe: without default policy, report-only does not throw and reports violation
- Element.prependHTMLUnsafe: without default policy, report-only does not throw and reports violation
- ShadowRoot.setHTMLUnsafe: without default policy, report-only does not throw and reports violation
- ShadowRoot.appendHTMLUnsafe: without default policy, report-only does not throw and reports violation
- ShadowRoot.prependHTMLUnsafe: without default policy, report-only does not throw and reports violation
- Node.beforeHTMLUnsafe: without default policy, report-only does not throw and reports violation
- Node.afterHTMLUnsafe: without default policy, report-only does not throw and reports violation
- Node.replaceWithHTMLUnsafe: without default policy, report-only does not throw and reports violation
- Element.innerHTML: without default policy, report-only does not throw and reports violation
- Document.parseHTMLUnsafe: without default policy, report-only does not throw and reports violation
- Initialize default policy
- Element.setHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
- Element.setHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
- Element.setHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
- Element.appendHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
- Element.appendHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
- Element.appendHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
- Element.prependHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
- Element.prependHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
- Element.prependHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
- ShadowRoot.setHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
- ShadowRoot.setHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
- ShadowRoot.setHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
- ShadowRoot.appendHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
- ShadowRoot.appendHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
- ShadowRoot.appendHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
- ShadowRoot.prependHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
- ShadowRoot.prependHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
- ShadowRoot.prependHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
- Node.beforeHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
- Node.beforeHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
- Node.beforeHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
- Node.afterHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
- Node.afterHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
- Node.afterHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
- Node.replaceWithHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
- Node.replaceWithHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
- Node.replaceWithHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
- Element.innerHTML: default policy createParserOptions with sanitizer does not report violation
- Document.parseHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
- Element.setHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
- Element.setHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
- Element.appendHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
- Element.appendHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
- Element.prependHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
- Element.prependHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
- ShadowRoot.setHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
- ShadowRoot.setHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
- ShadowRoot.appendHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
- ShadowRoot.appendHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
- ShadowRoot.prependHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
- ShadowRoot.prependHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
- Node.beforeHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
- Node.beforeHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
- Node.afterHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
- Node.afterHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
- Node.replaceWithHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
- Node.replaceWithHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
- Element.innerHTML: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
- Document.parseHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
- Element.setHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
- Element.appendHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
- Element.prependHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
- ShadowRoot.setHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
- ShadowRoot.appendHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
- ShadowRoot.prependHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
- Node.beforeHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
- Node.afterHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
- Node.replaceWithHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
- Element.innerHTML: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
- Document.parseHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
- Element.setHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
- Element.appendHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
- Element.prependHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
- ShadowRoot.setHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
- ShadowRoot.appendHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
- ShadowRoot.prependHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
- Node.beforeHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
- Node.afterHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
- Node.replaceWithHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
- Element.innerHTML: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
- Document.parseHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
- Element.setHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
- Element.setHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
- Element.appendHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
- Element.appendHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
- Element.prependHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
- Element.prependHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
- ShadowRoot.setHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
- ShadowRoot.setHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
- ShadowRoot.appendHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
- ShadowRoot.appendHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
- ShadowRoot.prependHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
- ShadowRoot.prependHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
- Node.beforeHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
- Node.beforeHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
- Node.afterHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
- Node.afterHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
- Node.replaceWithHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
- Node.replaceWithHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
- Element.innerHTML: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
- Document.parseHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
- Element.setHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
- Element.appendHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
- Element.prependHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
- ShadowRoot.setHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
- ShadowRoot.appendHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
- ShadowRoot.prependHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
- Node.beforeHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
- Node.afterHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
- Node.replaceWithHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
- Element.innerHTML: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
- Document.parseHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
- Element.setHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
- Element.appendHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
- Element.prependHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
- ShadowRoot.setHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
- ShadowRoot.appendHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
- ShadowRoot.prependHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
- Node.beforeHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
- Node.afterHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
- Node.replaceWithHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
- Element.innerHTML: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
- Document.parseHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
- Element.setHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
- Element.appendHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
- Element.prependHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
- ShadowRoot.setHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
- ShadowRoot.appendHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
- ShadowRoot.prependHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
- Node.beforeHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
- Node.afterHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
- Node.replaceWithHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
sethtml-with-trustedtypes-createParserOptions.html 97 / 97 passingChrome 97 / 970 failedClean
97 passing subtests
- ShadowRoot.setHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
- ShadowRoot.setHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
- ShadowRoot.setHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
- ShadowRoot.setHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
- ShadowRoot.setHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
- ShadowRoot.setHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
- ShadowRoot.setHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
- ShadowRoot.setHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
- ShadowRoot.setHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
- ShadowRoot.appendHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
- ShadowRoot.appendHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
- ShadowRoot.appendHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
- ShadowRoot.appendHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
- ShadowRoot.appendHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
- ShadowRoot.appendHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
- ShadowRoot.appendHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
- ShadowRoot.appendHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
- ShadowRoot.appendHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
- ShadowRoot.prependHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
- ShadowRoot.prependHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
- ShadowRoot.prependHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
- ShadowRoot.prependHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
- ShadowRoot.prependHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
- ShadowRoot.prependHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
- ShadowRoot.prependHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
- ShadowRoot.prependHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
- ShadowRoot.prependHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
- Element.setHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
- Element.setHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
- Element.setHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
- Element.setHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
- Element.setHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
- Element.setHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
- Element.setHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
- Element.setHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
- Element.setHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
- Element.appendHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
- Element.appendHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
- Element.appendHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
- Element.appendHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
- Element.appendHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
- Element.appendHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
- Element.appendHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
- Element.appendHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
- Element.appendHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
- Element.prependHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
- Element.prependHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
- Element.prependHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
- Element.prependHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
- Element.prependHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
- Element.prependHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
- Element.prependHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
- Element.prependHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
- Element.prependHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
- Element.beforeHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
- Element.beforeHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
- Element.beforeHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
- Element.beforeHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
- Element.beforeHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
- Element.beforeHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
- Element.beforeHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
- Element.beforeHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
- Element.beforeHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
- Element.afterHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
- Element.afterHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
- Element.afterHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
- Element.afterHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
- Element.afterHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
- Element.afterHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
- Element.afterHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
- Element.afterHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
- Element.afterHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
- Element.replaceWithHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
- Element.replaceWithHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
- Element.replaceWithHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
- Element.replaceWithHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
- Element.replaceWithHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
- Element.replaceWithHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
- Element.replaceWithHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
- Element.replaceWithHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
- Element.replaceWithHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
- TrustedTypePolicy.createParserOptions forwards extra arguments to callback
- TrustedTypePolicy.createParserOptions callback receives converted options dictionary
- TrustedHTMLParserOptions applies runScripts option without exposing public members
- TrustedTypePolicy.createParserOptions returning something other than an object (number: 0) throws a TypeError
- Element.setHTMLUnsafe: default policy createParserOptions returning something other than an object (number: 0) throws a TypeError
- TrustedTypePolicy.createParserOptions returning something other than an object (number: 123) throws a TypeError
- Element.setHTMLUnsafe: default policy createParserOptions returning something other than an object (number: 123) throws a TypeError
- TrustedTypePolicy.createParserOptions returning something other than an object (boolean: true) throws a TypeError
- Element.setHTMLUnsafe: default policy createParserOptions returning something other than an object (boolean: true) throws a TypeError
- TrustedTypePolicy.createParserOptions returning something other than an object (boolean: false) throws a TypeError
- Element.setHTMLUnsafe: default policy createParserOptions returning something other than an object (boolean: false) throws a TypeError
- TrustedTypePolicy.createParserOptions returning something other than an object (string: "string") throws a TypeError
- Element.setHTMLUnsafe: default policy createParserOptions returning something other than an object (string: "string") throws a TypeError
- Document.parseHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
- Document.parseHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
- Element.setHTMLUnsafe: default policy without createParserOptions falls back to createHTML
sethtml-with-trustedtypes-immutable.html 16 / 16 passingChrome 16 / 160 failedClean
16 passing subtests
- setHTMLUnsafe: createParserOptions doesn't mutate original object
- setHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
- appendHTMLUnsafe: createParserOptions doesn't mutate original object
- appendHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
- prependHTMLUnsafe: createParserOptions doesn't mutate original object
- prependHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
- beforeHTMLUnsafe: createParserOptions doesn't mutate original object
- beforeHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
- afterHTMLUnsafe: createParserOptions doesn't mutate original object
- afterHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
- replaceWithHTMLUnsafe: createParserOptions doesn't mutate original object
- replaceWithHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
- TrustedHTMLParserOptions interface has no public members
- TrustedHTMLParserOptions with config input applies sanitization without public members
- TrustedHTMLParserOptions clone testing with Sanitizer object input
- TrustedHTMLParserOptions with Preset string input
sethtml-with-trustedtypes.html 253 / 253 passingChrome 253 / 2530 failedClean
253 passing subtests
- ShadowRoot.setHTMLUnsafe: createParserOptions can inject a sanitizer config
- ShadowRoot.setHTMLUnsafe: createParserOptions receives correct type and sink name
- ShadowRoot.setHTMLUnsafe: createParserOptions can inject a sanitizer
- ShadowRoot.setHTMLUnsafe: createParserOptions can override a sanitizer config
- ShadowRoot.setHTMLUnsafe: createParserOptions can remove a sanitizer
- ShadowRoot.setHTMLUnsafe: createParserOptions returning null fails
- ShadowRoot.setHTMLUnsafe: createParserOptions returning undefined fails
- ShadowRoot.setHTMLUnsafe: createParserOptions returning 0 fails
- ShadowRoot.setHTMLUnsafe: createParserOptions returning 123 fails
- ShadowRoot.setHTMLUnsafe: createParserOptions returning "foo" fails
- ShadowRoot.setHTMLUnsafe: createParserOptions returning true fails
- ShadowRoot.setHTMLUnsafe: createParserOptions returning false fails
- ShadowRoot.appendHTMLUnsafe: createParserOptions can inject a sanitizer config
- ShadowRoot.appendHTMLUnsafe: createParserOptions receives correct type and sink name
- ShadowRoot.appendHTMLUnsafe: createParserOptions can inject a sanitizer
- ShadowRoot.appendHTMLUnsafe: createParserOptions can override a sanitizer config
- ShadowRoot.appendHTMLUnsafe: createParserOptions can remove a sanitizer
- ShadowRoot.appendHTMLUnsafe: createParserOptions returning null fails
- ShadowRoot.appendHTMLUnsafe: createParserOptions returning undefined fails
- ShadowRoot.appendHTMLUnsafe: createParserOptions returning 0 fails
- ShadowRoot.appendHTMLUnsafe: createParserOptions returning 123 fails
- ShadowRoot.appendHTMLUnsafe: createParserOptions returning "foo" fails
- ShadowRoot.appendHTMLUnsafe: createParserOptions returning true fails
- ShadowRoot.appendHTMLUnsafe: createParserOptions returning false fails
- ShadowRoot.prependHTMLUnsafe: createParserOptions can inject a sanitizer config
- ShadowRoot.prependHTMLUnsafe: createParserOptions receives correct type and sink name
- ShadowRoot.prependHTMLUnsafe: createParserOptions can inject a sanitizer
- ShadowRoot.prependHTMLUnsafe: createParserOptions can override a sanitizer config
- ShadowRoot.prependHTMLUnsafe: createParserOptions can remove a sanitizer
- ShadowRoot.prependHTMLUnsafe: createParserOptions returning null fails
- ShadowRoot.prependHTMLUnsafe: createParserOptions returning undefined fails
- ShadowRoot.prependHTMLUnsafe: createParserOptions returning 0 fails
- ShadowRoot.prependHTMLUnsafe: createParserOptions returning 123 fails
- ShadowRoot.prependHTMLUnsafe: createParserOptions returning "foo" fails
- ShadowRoot.prependHTMLUnsafe: createParserOptions returning true fails
- ShadowRoot.prependHTMLUnsafe: createParserOptions returning false fails
- ShadowRoot.innerHTML: createParserOptions can inject a sanitizer config
- ShadowRoot.innerHTML: createParserOptions receives correct type and sink name
- ShadowRoot.innerHTML: createParserOptions can inject a sanitizer
- ShadowRoot.innerHTML: createParserOptions returning null fails
- ShadowRoot.innerHTML: createParserOptions returning undefined fails
- ShadowRoot.innerHTML: createParserOptions returning 0 fails
- ShadowRoot.innerHTML: createParserOptions returning 123 fails
- ShadowRoot.innerHTML: createParserOptions returning "foo" fails
- ShadowRoot.innerHTML: createParserOptions returning true fails
- ShadowRoot.innerHTML: createParserOptions returning false fails
- ShadowRoot.setHTMLUnsafe: createParserOptions can override runScripts from true to false
- ShadowRoot.setHTMLUnsafe: createParserOptions can override runScripts from false to true
- ShadowRoot.setHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
- ShadowRoot.appendHTMLUnsafe: createParserOptions can override runScripts from true to false
- ShadowRoot.appendHTMLUnsafe: createParserOptions can override runScripts from false to true
- ShadowRoot.appendHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
- ShadowRoot.prependHTMLUnsafe: createParserOptions can override runScripts from true to false
- ShadowRoot.prependHTMLUnsafe: createParserOptions can override runScripts from false to true
- ShadowRoot.prependHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
- ShadowRoot.innerHTML: createParserOptions returning {runScripts: true} enables script execution
- ShadowRoot.setHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
- ShadowRoot.appendHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
- ShadowRoot.prependHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
- ShadowRoot.innerHTML: exception in createParserOptions is rethrown and prevents createHTML
- Element.setHTMLUnsafe: createParserOptions can inject a sanitizer config
- Element.setHTMLUnsafe: createParserOptions receives correct type and sink name
- Element.setHTMLUnsafe: createParserOptions can inject a sanitizer
- Element.setHTMLUnsafe: createParserOptions can override a sanitizer config
- Element.setHTMLUnsafe: createParserOptions can remove a sanitizer
- Element.setHTMLUnsafe: createParserOptions returning null fails
- Element.setHTMLUnsafe: createParserOptions returning undefined fails
- Element.setHTMLUnsafe: createParserOptions returning 0 fails
- Element.setHTMLUnsafe: createParserOptions returning 123 fails
- Element.setHTMLUnsafe: createParserOptions returning "foo" fails
- Element.setHTMLUnsafe: createParserOptions returning true fails
- Element.setHTMLUnsafe: createParserOptions returning false fails
- Element.appendHTMLUnsafe: createParserOptions can inject a sanitizer config
- Element.appendHTMLUnsafe: createParserOptions receives correct type and sink name
- Element.appendHTMLUnsafe: createParserOptions can inject a sanitizer
- Element.appendHTMLUnsafe: createParserOptions can override a sanitizer config
- Element.appendHTMLUnsafe: createParserOptions can remove a sanitizer
- Element.appendHTMLUnsafe: createParserOptions returning null fails
- Element.appendHTMLUnsafe: createParserOptions returning undefined fails
- Element.appendHTMLUnsafe: createParserOptions returning 0 fails
- Element.appendHTMLUnsafe: createParserOptions returning 123 fails
- Element.appendHTMLUnsafe: createParserOptions returning "foo" fails
- Element.appendHTMLUnsafe: createParserOptions returning true fails
- Element.appendHTMLUnsafe: createParserOptions returning false fails
- Element.prependHTMLUnsafe: createParserOptions can inject a sanitizer config
- Element.prependHTMLUnsafe: createParserOptions receives correct type and sink name
- Element.prependHTMLUnsafe: createParserOptions can inject a sanitizer
- Element.prependHTMLUnsafe: createParserOptions can override a sanitizer config
- Element.prependHTMLUnsafe: createParserOptions can remove a sanitizer
- Element.prependHTMLUnsafe: createParserOptions returning null fails
- Element.prependHTMLUnsafe: createParserOptions returning undefined fails
- Element.prependHTMLUnsafe: createParserOptions returning 0 fails
- Element.prependHTMLUnsafe: createParserOptions returning 123 fails
- Element.prependHTMLUnsafe: createParserOptions returning "foo" fails
- Element.prependHTMLUnsafe: createParserOptions returning true fails
- Element.prependHTMLUnsafe: createParserOptions returning false fails
- Element.beforeHTMLUnsafe: createParserOptions can inject a sanitizer config
- Element.beforeHTMLUnsafe: createParserOptions receives correct type and sink name
- Element.beforeHTMLUnsafe: createParserOptions can inject a sanitizer
- Element.beforeHTMLUnsafe: createParserOptions can override a sanitizer config
- Element.beforeHTMLUnsafe: createParserOptions can remove a sanitizer
- Element.beforeHTMLUnsafe: createParserOptions returning null fails
- Element.beforeHTMLUnsafe: createParserOptions returning undefined fails
- Element.beforeHTMLUnsafe: createParserOptions returning 0 fails
- Element.beforeHTMLUnsafe: createParserOptions returning 123 fails
- Element.beforeHTMLUnsafe: createParserOptions returning "foo" fails
- Element.beforeHTMLUnsafe: createParserOptions returning true fails
- Element.beforeHTMLUnsafe: createParserOptions returning false fails
- Element.afterHTMLUnsafe: createParserOptions can inject a sanitizer config
- Element.afterHTMLUnsafe: createParserOptions receives correct type and sink name
- Element.afterHTMLUnsafe: createParserOptions can inject a sanitizer
- Element.afterHTMLUnsafe: createParserOptions can override a sanitizer config
- Element.afterHTMLUnsafe: createParserOptions can remove a sanitizer
- Element.afterHTMLUnsafe: createParserOptions returning null fails
- Element.afterHTMLUnsafe: createParserOptions returning undefined fails
- Element.afterHTMLUnsafe: createParserOptions returning 0 fails
- Element.afterHTMLUnsafe: createParserOptions returning 123 fails
- Element.afterHTMLUnsafe: createParserOptions returning "foo" fails
- Element.afterHTMLUnsafe: createParserOptions returning true fails
- Element.afterHTMLUnsafe: createParserOptions returning false fails
- Element.replaceWithHTMLUnsafe: createParserOptions can inject a sanitizer config
- Element.replaceWithHTMLUnsafe: createParserOptions receives correct type and sink name
- Element.replaceWithHTMLUnsafe: createParserOptions can inject a sanitizer
- Element.replaceWithHTMLUnsafe: createParserOptions can override a sanitizer config
- Element.replaceWithHTMLUnsafe: createParserOptions can remove a sanitizer
- Element.replaceWithHTMLUnsafe: createParserOptions returning null fails
- Element.replaceWithHTMLUnsafe: createParserOptions returning undefined fails
- Element.replaceWithHTMLUnsafe: createParserOptions returning 0 fails
- Element.replaceWithHTMLUnsafe: createParserOptions returning 123 fails
- Element.replaceWithHTMLUnsafe: createParserOptions returning "foo" fails
- Element.replaceWithHTMLUnsafe: createParserOptions returning true fails
- Element.replaceWithHTMLUnsafe: createParserOptions returning false fails
- Element.innerHTML: createParserOptions can inject a sanitizer config
- Element.innerHTML: createParserOptions receives correct type and sink name
- Element.innerHTML: createParserOptions can inject a sanitizer
- Element.innerHTML: createParserOptions returning null fails
- Element.innerHTML: createParserOptions returning undefined fails
- Element.innerHTML: createParserOptions returning 0 fails
- Element.innerHTML: createParserOptions returning 123 fails
- Element.innerHTML: createParserOptions returning "foo" fails
- Element.innerHTML: createParserOptions returning true fails
- Element.innerHTML: createParserOptions returning false fails
- Element.outerHTML: createParserOptions can inject a sanitizer config
- Element.outerHTML: createParserOptions receives correct type and sink name
- Element.outerHTML: createParserOptions can inject a sanitizer
- Element.outerHTML: createParserOptions returning null fails
- Element.outerHTML: createParserOptions returning undefined fails
- Element.outerHTML: createParserOptions returning 0 fails
- Element.outerHTML: createParserOptions returning 123 fails
- Element.outerHTML: createParserOptions returning "foo" fails
- Element.outerHTML: createParserOptions returning true fails
- Element.outerHTML: createParserOptions returning false fails
- Element.createContextualFragment: createParserOptions can inject a sanitizer config
- Element.createContextualFragment: createParserOptions receives correct type and sink name
- Element.createContextualFragment: createParserOptions can inject a sanitizer
- Element.createContextualFragment: createParserOptions returning null fails
- Element.createContextualFragment: createParserOptions returning undefined fails
- Element.createContextualFragment: createParserOptions returning 0 fails
- Element.createContextualFragment: createParserOptions returning 123 fails
- Element.createContextualFragment: createParserOptions returning "foo" fails
- Element.createContextualFragment: createParserOptions returning true fails
- Element.createContextualFragment: createParserOptions returning false fails
- Element.afterbegin: createParserOptions can inject a sanitizer config
- Element.afterbegin: createParserOptions receives correct type and sink name
- Element.afterbegin: createParserOptions can inject a sanitizer
- Element.afterbegin: createParserOptions returning null fails
- Element.afterbegin: createParserOptions returning undefined fails
- Element.afterbegin: createParserOptions returning 0 fails
- Element.afterbegin: createParserOptions returning 123 fails
- Element.afterbegin: createParserOptions returning "foo" fails
- Element.afterbegin: createParserOptions returning true fails
- Element.afterbegin: createParserOptions returning false fails
- Element.beforeend: createParserOptions can inject a sanitizer config
- Element.beforeend: createParserOptions receives correct type and sink name
- Element.beforeend: createParserOptions can inject a sanitizer
- Element.beforeend: createParserOptions returning null fails
- Element.beforeend: createParserOptions returning undefined fails
- Element.beforeend: createParserOptions returning 0 fails
- Element.beforeend: createParserOptions returning 123 fails
- Element.beforeend: createParserOptions returning "foo" fails
- Element.beforeend: createParserOptions returning true fails
- Element.beforeend: createParserOptions returning false fails
- Element.beforebegin: createParserOptions can inject a sanitizer config
- Element.beforebegin: createParserOptions receives correct type and sink name
- Element.beforebegin: createParserOptions can inject a sanitizer
- Element.beforebegin: createParserOptions returning null fails
- Element.beforebegin: createParserOptions returning undefined fails
- Element.beforebegin: createParserOptions returning 0 fails
- Element.beforebegin: createParserOptions returning 123 fails
- Element.beforebegin: createParserOptions returning "foo" fails
- Element.beforebegin: createParserOptions returning true fails
- Element.beforebegin: createParserOptions returning false fails
- Element.afterend: createParserOptions can inject a sanitizer config
- Element.afterend: createParserOptions receives correct type and sink name
- Element.afterend: createParserOptions can inject a sanitizer
- Element.afterend: createParserOptions returning null fails
- Element.afterend: createParserOptions returning undefined fails
- Element.afterend: createParserOptions returning 0 fails
- Element.afterend: createParserOptions returning 123 fails
- Element.afterend: createParserOptions returning "foo" fails
- Element.afterend: createParserOptions returning true fails
- Element.afterend: createParserOptions returning false fails
- Element.parseHTMLUnsafe: createParserOptions can inject a sanitizer config
- Element.parseHTMLUnsafe: createParserOptions receives correct type and sink name
- Element.parseHTMLUnsafe: createParserOptions can inject a sanitizer
- Element.parseHTMLUnsafe: createParserOptions can override a sanitizer config
- Element.parseHTMLUnsafe: createParserOptions can remove a sanitizer
- Element.parseHTMLUnsafe: createParserOptions returning null fails
- Element.parseHTMLUnsafe: createParserOptions returning undefined fails
- Element.parseHTMLUnsafe: createParserOptions returning 0 fails
- Element.parseHTMLUnsafe: createParserOptions returning 123 fails
- Element.parseHTMLUnsafe: createParserOptions returning "foo" fails
- Element.parseHTMLUnsafe: createParserOptions returning true fails
- Element.parseHTMLUnsafe: createParserOptions returning false fails
- Element.setHTMLUnsafe: createParserOptions can override runScripts from true to false
- Element.setHTMLUnsafe: createParserOptions can override runScripts from false to true
- Element.setHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
- Element.appendHTMLUnsafe: createParserOptions can override runScripts from true to false
- Element.appendHTMLUnsafe: createParserOptions can override runScripts from false to true
- Element.appendHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
- Element.prependHTMLUnsafe: createParserOptions can override runScripts from true to false
- Element.prependHTMLUnsafe: createParserOptions can override runScripts from false to true
- Element.prependHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
- Element.beforeHTMLUnsafe: createParserOptions can override runScripts from true to false
- Element.beforeHTMLUnsafe: createParserOptions can override runScripts from false to true
- Element.beforeHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
- Element.afterHTMLUnsafe: createParserOptions can override runScripts from true to false
- Element.afterHTMLUnsafe: createParserOptions can override runScripts from false to true
- Element.afterHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
- Element.replaceWithHTMLUnsafe: createParserOptions can override runScripts from true to false
- Element.replaceWithHTMLUnsafe: createParserOptions can override runScripts from false to true
- Element.replaceWithHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
- Element.innerHTML: createParserOptions returning {runScripts: true} enables script execution
- Element.outerHTML: createParserOptions returning {runScripts: true} enables script execution
- Element.afterbegin: createParserOptions returning {runScripts: true} enables script execution
- Element.beforeend: createParserOptions returning {runScripts: true} enables script execution
- Element.beforebegin: createParserOptions returning {runScripts: true} enables script execution
- Element.afterend: createParserOptions returning {runScripts: true} enables script execution
- Element: createContextualFragment with createParserOptions(runScripts=false) does not run scripts
- Element: createContextualFragment runs scripts by default
- Element.setHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
- Element.appendHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
- Element.prependHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
- Element.beforeHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
- Element.afterHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
- Element.replaceWithHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
- Element.innerHTML: exception in createParserOptions is rethrown and prevents createHTML
- Element.outerHTML: exception in createParserOptions is rethrown and prevents createHTML
- Element.createContextualFragment: exception in createParserOptions is rethrown and prevents createHTML
- Element.afterbegin: exception in createParserOptions is rethrown and prevents createHTML
- Element.beforeend: exception in createParserOptions is rethrown and prevents createHTML
- Element.beforebegin: exception in createParserOptions is rethrown and prevents createHTML
- Element.afterend: exception in createParserOptions is rethrown and prevents createHTML
sethtml-xml-document-sanitizer-report-only.html 21 / 21 passingChrome 21 / 210 failedClean
21 passing subtests
- innerHTML on XML document does not call createParserOptions or throw TypeError in report-only mode and reports violation when createHTML is missing
- outerHTML on XML document does not call createParserOptions or throw TypeError in report-only mode and reports violation when createHTML is missing
- insertAdjacentHTML on XML document does not call createParserOptions or throw TypeError in report-only mode and reports violation when createHTML is missing
- createContextualFragment on XML document does not call createParserOptions or throw TypeError in report-only mode and reports violation when createHTML is missing
- setHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
- setHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
- appendHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
- appendHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
- prependHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
- prependHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
- beforeHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
- beforeHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
- afterHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
- afterHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
- replaceWithHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
- replaceWithHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
- innerHTML on XML document created by DOMParser does not call createParserOptions and reports violation when createHTML is missing
- innerHTML on XML document executes createHTML, does not call createParserOptions, and does not report violation when default policy provides both
- outerHTML on XML document executes createHTML, does not call createParserOptions, and does not report violation when default policy provides both
- insertAdjacentHTML on XML document executes createHTML, does not call createParserOptions, and does not report violation when default policy provides both
- createContextualFragment on XML document executes createHTML, does not call createParserOptions, and does not report violation when default policy provides both
sethtml-xml-document-sanitizer.html 26 / 26 passingChrome 26 / 260 failedClean
26 passing subtests
- innerHTML on XML document throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
- outerHTML on XML document throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
- insertAdjacentHTML on XML document throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
- createContextualFragment on XML document throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
- innerHTML on XML document created by DOMParser throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
- innerHTML on XML document from XHR response throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
- setHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
- setHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
- appendHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
- appendHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
- prependHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
- prependHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
- beforeHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
- beforeHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
- afterHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
- afterHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
- replaceWithHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
- replaceWithHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
- innerHTML on XML document executes createHTML and does not call createParserOptions when default policy provides both
- outerHTML on XML document executes createHTML and does not call createParserOptions when default policy provides both
- insertAdjacentHTML on XML document executes createHTML and does not call createParserOptions when default policy provides both
- createContextualFragment on XML document executes createHTML and does not call createParserOptions when default policy provides both
- innerHTML on XML document created by DOMParser executes createHTML and does not call createParserOptions when default policy provides both
- innerHTML on XML document from XHR response executes createHTML and does not call createParserOptions when default policy provides both
- innerHTML on XML document does not invoke throwing createParserOptions
- innerHTML on XML document accepts TrustedHTML without calling createParserOptions or throwing even if createHTML is missing
sethtml-xml-document.html 4 / 8 passingChrome 8 / 84 failedWith failures
- ¶
FAILTestcase #0, shadow inside xmlDoc, shadowroot.setHTML("Hello!")
NotSupportedError
- ¶
FAILTestcase #1, shadow inside xmlDoc, shadowroot.setHTML("<br>")
NotSupportedError
- ¶
FAILTestcase #2, shadow inside xmlDoc, shadowroot.setHTML("<p>Hi</p>")
NotSupportedError
- ¶
FAILTestcase #3, shadow inside xmlDoc, shadowroot.setHTML("<iframe></iframe><p>text</p>")
NotSupportedError
4 passing subtests
- Testcase #0 with xmlDoc.setHTML("Hello!")
- Testcase #1 with xmlDoc.setHTML("<br>")
- Testcase #2 with xmlDoc.setHTML("<p>Hi</p>")
- Testcase #3 with xmlDoc.setHTML("<iframe></iframe><p>text</p>")
sethtmlunsafe-toplevel-template-script.html 10 / 10 passingChrome 10 / 100 failedClean
10 passing subtests
- Top-level template and script testcases from sub.dat
- Top-level <script> parsed through setHTMLUnsafe() without runScripts does not execute
- Top-level <script> parsed through setHTMLUnsafe() with runScripts: true executes
- Testcase #0 [setHTMLUnsafe], "<template><b>Hello</b></template>", config: "{}"
- Testcase #1 [setHTMLUnsafe], "<template shadowrootmode="open"><span>Inside</span></template>", config: "{}"
- Testcase #2 [setHTMLUnsafe], "<template><b>Hello</b></template>", config: "{ "replaceWithChildrenElements": ["template"] }"
- Testcase #3 [setHTMLUnsafe], "<template><b>Hello</b></template>", config: "{ "removeElements": ["template"] }"
- Testcase #4 [setHTMLUnsafe], "<script>alert(1);</script>", config: "{}"
- Testcase #5 [setHTMLUnsafe], "<script><b>Hello</b></script>", config: "{ "replaceWithChildrenElements": ["script"] }"
- Testcase #6 [setHTMLUnsafe], "<template><p>Text</p><div>More</div></template>", config: "{}"
trustedhtml-unvetted-parser-options-default-createHTML.html 180 / 180 passingChrome 180 / 1800 failedClean
180 passing subtests
- Element.setHTMLUnsafe: string with a sanitizer config throws without calling createHTML
- Element.setHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Element.setHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
- Element.setHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Element.setHTMLUnsafe: string with a Sanitizer throws without calling createHTML
- Element.setHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Element.setHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
- Element.setHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Element.setHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
- Element.setHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Element.setHTMLUnsafe: string with runScripts true throws without calling createHTML
- Element.setHTMLUnsafe: TrustedHTML with runScripts true throws
- Element.setHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
- Element.setHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Element.setHTMLUnsafe: string with no options is converted by createHTML
- Element.setHTMLUnsafe: string with an empty dictionary is converted by createHTML
- Element.setHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
- Element.setHTMLUnsafe: string with runScripts false is converted by createHTML
- Element.appendHTMLUnsafe: string with a sanitizer config throws without calling createHTML
- Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Element.appendHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
- Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Element.appendHTMLUnsafe: string with a Sanitizer throws without calling createHTML
- Element.appendHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Element.appendHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
- Element.appendHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Element.appendHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
- Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Element.appendHTMLUnsafe: string with runScripts true throws without calling createHTML
- Element.appendHTMLUnsafe: TrustedHTML with runScripts true throws
- Element.appendHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
- Element.appendHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Element.appendHTMLUnsafe: string with no options is converted by createHTML
- Element.appendHTMLUnsafe: string with an empty dictionary is converted by createHTML
- Element.appendHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
- Element.appendHTMLUnsafe: string with runScripts false is converted by createHTML
- Element.prependHTMLUnsafe: string with a sanitizer config throws without calling createHTML
- Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Element.prependHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
- Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Element.prependHTMLUnsafe: string with a Sanitizer throws without calling createHTML
- Element.prependHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Element.prependHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
- Element.prependHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Element.prependHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
- Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Element.prependHTMLUnsafe: string with runScripts true throws without calling createHTML
- Element.prependHTMLUnsafe: TrustedHTML with runScripts true throws
- Element.prependHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
- Element.prependHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Element.prependHTMLUnsafe: string with no options is converted by createHTML
- Element.prependHTMLUnsafe: string with an empty dictionary is converted by createHTML
- Element.prependHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
- Element.prependHTMLUnsafe: string with runScripts false is converted by createHTML
- ShadowRoot.setHTMLUnsafe: string with a sanitizer config throws without calling createHTML
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config throws
- ShadowRoot.setHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- ShadowRoot.setHTMLUnsafe: string with a Sanitizer throws without calling createHTML
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a Sanitizer throws
- ShadowRoot.setHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
- ShadowRoot.setHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- ShadowRoot.setHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- ShadowRoot.setHTMLUnsafe: string with runScripts true throws without calling createHTML
- ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true throws
- ShadowRoot.setHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
- ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- ShadowRoot.setHTMLUnsafe: string with no options is converted by createHTML
- ShadowRoot.setHTMLUnsafe: string with an empty dictionary is converted by createHTML
- ShadowRoot.setHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
- ShadowRoot.setHTMLUnsafe: string with runScripts false is converted by createHTML
- ShadowRoot.appendHTMLUnsafe: string with a sanitizer config throws without calling createHTML
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config throws
- ShadowRoot.appendHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- ShadowRoot.appendHTMLUnsafe: string with a Sanitizer throws without calling createHTML
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a Sanitizer throws
- ShadowRoot.appendHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- ShadowRoot.appendHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- ShadowRoot.appendHTMLUnsafe: string with runScripts true throws without calling createHTML
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true throws
- ShadowRoot.appendHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- ShadowRoot.appendHTMLUnsafe: string with no options is converted by createHTML
- ShadowRoot.appendHTMLUnsafe: string with an empty dictionary is converted by createHTML
- ShadowRoot.appendHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
- ShadowRoot.appendHTMLUnsafe: string with runScripts false is converted by createHTML
- ShadowRoot.prependHTMLUnsafe: string with a sanitizer config throws without calling createHTML
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config throws
- ShadowRoot.prependHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- ShadowRoot.prependHTMLUnsafe: string with a Sanitizer throws without calling createHTML
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a Sanitizer throws
- ShadowRoot.prependHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- ShadowRoot.prependHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- ShadowRoot.prependHTMLUnsafe: string with runScripts true throws without calling createHTML
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true throws
- ShadowRoot.prependHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- ShadowRoot.prependHTMLUnsafe: string with no options is converted by createHTML
- ShadowRoot.prependHTMLUnsafe: string with an empty dictionary is converted by createHTML
- ShadowRoot.prependHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
- ShadowRoot.prependHTMLUnsafe: string with runScripts false is converted by createHTML
- Node.beforeHTMLUnsafe: string with a sanitizer config throws without calling createHTML
- Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Node.beforeHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
- Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Node.beforeHTMLUnsafe: string with a Sanitizer throws without calling createHTML
- Node.beforeHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Node.beforeHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
- Node.beforeHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Node.beforeHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
- Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Node.beforeHTMLUnsafe: string with runScripts true throws without calling createHTML
- Node.beforeHTMLUnsafe: TrustedHTML with runScripts true throws
- Node.beforeHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
- Node.beforeHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Node.beforeHTMLUnsafe: string with no options is converted by createHTML
- Node.beforeHTMLUnsafe: string with an empty dictionary is converted by createHTML
- Node.beforeHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
- Node.beforeHTMLUnsafe: string with runScripts false is converted by createHTML
- Node.afterHTMLUnsafe: string with a sanitizer config throws without calling createHTML
- Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Node.afterHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
- Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Node.afterHTMLUnsafe: string with a Sanitizer throws without calling createHTML
- Node.afterHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Node.afterHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
- Node.afterHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Node.afterHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
- Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Node.afterHTMLUnsafe: string with runScripts true throws without calling createHTML
- Node.afterHTMLUnsafe: TrustedHTML with runScripts true throws
- Node.afterHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
- Node.afterHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Node.afterHTMLUnsafe: string with no options is converted by createHTML
- Node.afterHTMLUnsafe: string with an empty dictionary is converted by createHTML
- Node.afterHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
- Node.afterHTMLUnsafe: string with runScripts false is converted by createHTML
- Node.replaceWithHTMLUnsafe: string with a sanitizer config throws without calling createHTML
- Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Node.replaceWithHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
- Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Node.replaceWithHTMLUnsafe: string with a Sanitizer throws without calling createHTML
- Node.replaceWithHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Node.replaceWithHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
- Node.replaceWithHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Node.replaceWithHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
- Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Node.replaceWithHTMLUnsafe: string with runScripts true throws without calling createHTML
- Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true throws
- Node.replaceWithHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
- Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Node.replaceWithHTMLUnsafe: string with no options is converted by createHTML
- Node.replaceWithHTMLUnsafe: string with an empty dictionary is converted by createHTML
- Node.replaceWithHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
- Node.replaceWithHTMLUnsafe: string with runScripts false is converted by createHTML
- Document.parseHTMLUnsafe: string with a sanitizer config throws without calling createHTML
- Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Document.parseHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
- Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Document.parseHTMLUnsafe: string with a Sanitizer throws without calling createHTML
- Document.parseHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Document.parseHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
- Document.parseHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Document.parseHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
- Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Document.parseHTMLUnsafe: string with no options is converted by createHTML
- Document.parseHTMLUnsafe: string with an empty dictionary is converted by createHTML
- Document.parseHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
- Document.parseHTMLUnsafe: string with runScripts false is converted by createHTML
- Document.parseHTMLUnsafe: string with runScripts true is converted by createHTML
- Document.parseHTMLUnsafe: string with runScripts true and an empty sanitizer config is converted by createHTML
- Range.createContextualFragment: string is converted by createHTML, as its runScripts is not author-supplied
- Element.innerHTML: string is converted by createHTML
trustedhtml-unvetted-parser-options-default-createParserOptions.html 19 / 19 passingChrome 19 / 190 failedClean
19 passing subtests
- Element.setHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
- Element.setHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
- Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
- Element.appendHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
- Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
- Element.prependHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
- ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
- Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
- Node.beforeHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
- Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
- Node.afterHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
- Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
- Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
- Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
trustedhtml-unvetted-parser-options-no-enforcement.html 29 / 29 passingChrome 29 / 290 failedClean
29 passing subtests
- Element.setHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
- Element.setHTMLUnsafe: string with a sanitizer config is allowed
- Element.setHTMLUnsafe: TrustedHTML with runScripts true is allowed
- Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
- Element.appendHTMLUnsafe: string with a sanitizer config is allowed
- Element.appendHTMLUnsafe: TrustedHTML with runScripts true is allowed
- Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
- Element.prependHTMLUnsafe: string with a sanitizer config is allowed
- Element.prependHTMLUnsafe: TrustedHTML with runScripts true is allowed
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
- ShadowRoot.setHTMLUnsafe: string with a sanitizer config is allowed
- ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true is allowed
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
- ShadowRoot.appendHTMLUnsafe: string with a sanitizer config is allowed
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true is allowed
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
- ShadowRoot.prependHTMLUnsafe: string with a sanitizer config is allowed
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true is allowed
- Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
- Node.beforeHTMLUnsafe: string with a sanitizer config is allowed
- Node.beforeHTMLUnsafe: TrustedHTML with runScripts true is allowed
- Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
- Node.afterHTMLUnsafe: string with a sanitizer config is allowed
- Node.afterHTMLUnsafe: TrustedHTML with runScripts true is allowed
- Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
- Node.replaceWithHTMLUnsafe: string with a sanitizer config is allowed
- Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true is allowed
- Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
- Document.parseHTMLUnsafe: string with a sanitizer config is allowed
trustedhtml-unvetted-parser-options-report-only.html 39 / 39 passingChrome 39 / 390 failedClean
39 passing subtests
- Element.setHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
- Element.setHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
- Element.setHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
- Element.setHTMLUnsafe: string with a sanitizer config is reported twice and allowed
- Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
- Element.appendHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
- Element.appendHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
- Element.appendHTMLUnsafe: string with a sanitizer config is reported twice and allowed
- Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
- Element.prependHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
- Element.prependHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
- Element.prependHTMLUnsafe: string with a sanitizer config is reported twice and allowed
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
- ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
- ShadowRoot.setHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
- ShadowRoot.setHTMLUnsafe: string with a sanitizer config is reported twice and allowed
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
- ShadowRoot.appendHTMLUnsafe: string with a sanitizer config is reported twice and allowed
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
- ShadowRoot.prependHTMLUnsafe: string with a sanitizer config is reported twice and allowed
- Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
- Node.beforeHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
- Node.beforeHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
- Node.beforeHTMLUnsafe: string with a sanitizer config is reported twice and allowed
- Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
- Node.afterHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
- Node.afterHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
- Node.afterHTMLUnsafe: string with a sanitizer config is reported twice and allowed
- Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
- Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
- Node.replaceWithHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
- Node.replaceWithHTMLUnsafe: string with a sanitizer config is reported twice and allowed
- Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
- Document.parseHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
- Document.parseHTMLUnsafe: string with a sanitizer config is reported twice and allowed
trustedhtml-unvetted-parser-options.html 141 / 141 passingChrome 141 / 1410 failedClean
141 passing subtests
- Element.setHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Element.setHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Element.setHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Element.setHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Element.setHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Element.setHTMLUnsafe: TrustedHTML with runScripts true throws
- Element.setHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Element.setHTMLUnsafe: TrustedHTML with no options is allowed
- Element.setHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
- Element.setHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
- Element.setHTMLUnsafe: TrustedHTML with runScripts false is allowed
- Element.setHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
- Element.setHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
- Element.setHTMLUnsafe: string with a sanitizer config throws
- Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Element.appendHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Element.appendHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Element.appendHTMLUnsafe: TrustedHTML with runScripts true throws
- Element.appendHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Element.appendHTMLUnsafe: TrustedHTML with no options is allowed
- Element.appendHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
- Element.appendHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
- Element.appendHTMLUnsafe: TrustedHTML with runScripts false is allowed
- Element.appendHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
- Element.appendHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
- Element.appendHTMLUnsafe: string with a sanitizer config throws
- Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Element.prependHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Element.prependHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Element.prependHTMLUnsafe: TrustedHTML with runScripts true throws
- Element.prependHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Element.prependHTMLUnsafe: TrustedHTML with no options is allowed
- Element.prependHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
- Element.prependHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
- Element.prependHTMLUnsafe: TrustedHTML with runScripts false is allowed
- Element.prependHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
- Element.prependHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
- Element.prependHTMLUnsafe: string with a sanitizer config throws
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config throws
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a Sanitizer throws
- ShadowRoot.setHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true throws
- ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- ShadowRoot.setHTMLUnsafe: TrustedHTML with no options is allowed
- ShadowRoot.setHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
- ShadowRoot.setHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
- ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts false is allowed
- ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
- ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
- ShadowRoot.setHTMLUnsafe: string with a sanitizer config throws
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config throws
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a Sanitizer throws
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true throws
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with no options is allowed
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts false is allowed
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
- ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
- ShadowRoot.appendHTMLUnsafe: string with a sanitizer config throws
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config throws
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a Sanitizer throws
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true throws
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with no options is allowed
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts false is allowed
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
- ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
- ShadowRoot.prependHTMLUnsafe: string with a sanitizer config throws
- Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Node.beforeHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Node.beforeHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Node.beforeHTMLUnsafe: TrustedHTML with runScripts true throws
- Node.beforeHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Node.beforeHTMLUnsafe: TrustedHTML with no options is allowed
- Node.beforeHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
- Node.beforeHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
- Node.beforeHTMLUnsafe: TrustedHTML with runScripts false is allowed
- Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
- Node.beforeHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
- Node.beforeHTMLUnsafe: string with a sanitizer config throws
- Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Node.afterHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Node.afterHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Node.afterHTMLUnsafe: TrustedHTML with runScripts true throws
- Node.afterHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Node.afterHTMLUnsafe: TrustedHTML with no options is allowed
- Node.afterHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
- Node.afterHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
- Node.afterHTMLUnsafe: TrustedHTML with runScripts false is allowed
- Node.afterHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
- Node.afterHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
- Node.afterHTMLUnsafe: string with a sanitizer config throws
- Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Node.replaceWithHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Node.replaceWithHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true throws
- Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
- Node.replaceWithHTMLUnsafe: TrustedHTML with no options is allowed
- Node.replaceWithHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
- Node.replaceWithHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
- Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts false is allowed
- Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
- Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
- Node.replaceWithHTMLUnsafe: string with a sanitizer config throws
- Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config throws
- Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
- Document.parseHTMLUnsafe: TrustedHTML with a Sanitizer throws
- Document.parseHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
- Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
- Document.parseHTMLUnsafe: TrustedHTML with runScripts true is allowed, as runScripts is not an option
- Document.parseHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config is allowed, as runScripts is not an option
- Document.parseHTMLUnsafe: TrustedHTML with no options is allowed
- Document.parseHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
- Document.parseHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
- Document.parseHTMLUnsafe: TrustedHTML with runScripts false is allowed
- Document.parseHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
- Document.parseHTMLUnsafe: string with a sanitizer config throws
- Range.createContextualFragment: TrustedHTML is allowed, as its runScripts is not author-supplied
- Element.innerHTML: TrustedHTML is allowed