Files
servo/tests/wpt/meta/sanitizer-api/sethtml-tree-construction.tentative.html.ini
Kingsley Yung b23ee51d00 script: Initialize Sanitizer API implementation (#44198)
Initialize Sanitizer API implementation with partially implemented
constructor and `get()` methods of the `Sanitizer` interface, which
allows the sub-sequential implementation to be tested by WPT.

The `Sanitizer` interface is hidden behind the feature flag
`dom_sanitizer_enabled`, which is disabled by default.

Specification: https://wicg.github.io/sanitizer-api/

Testing: Enable WPT tests for Sanitizer API.
Fixes: Part of #43948

---------

Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
2026-04-16 10:31:53 +00:00

244 lines
9.5 KiB
INI
Vendored

[sethtml-tree-construction.tentative.html]
[Non-string input: empty object.]
expected: FAIL
[Non-string input: number.]
expected: FAIL
[Non-string input: octal number.]
expected: FAIL
[Non-string input: expression.]
expected: FAIL
[Non-string input: undefined.]
expected: FAIL
[Testcase #0, "test", config: "undefined".]
expected: FAIL
[Testcase #1, "<b>bla</b>", config: "undefined".]
expected: FAIL
[Testcase #2, "<a<embla", config: "undefined".]
expected: FAIL
[Testcase #3, "<html><head></head><body>test</body></html>", config: "undefined".]
expected: FAIL
[Testcase #4, "<div>test", config: "undefined".]
expected: FAIL
[Testcase #5, "<script>alert('i am a test')</script>", config: "undefined".]
expected: FAIL
[Testcase #6, "hello<script>alert('i am a test')</script>", config: "undefined".]
expected: FAIL
[Testcase #7, "<div><b>hello<script>alert('i am a test')</script>", config: "undefined".]
expected: FAIL
[Testcase #8, "<p onclick='a= 123'>Click.</p>", config: "undefined".]
expected: FAIL
[Testcase #9, "<plaintext><p>text</p>", config: "{}".]
expected: FAIL
[Testcase #10, "<xmp>TEXT</xmp>", config: "{}".]
expected: FAIL
[Testcase #11, "test", config: "{ "test": 123 }".]
expected: FAIL
[Testcase #12, "test", config: "{ "removeElements": [\] }".]
expected: FAIL
[Testcase #13, "<div>test</div><p>bla", config: "{ "removeElements": ["div"\] }".]
expected: FAIL
[Testcase #14, "<custom-element>test1</custom-element>bla", config: "undefined".]
expected: FAIL
[Testcase #15, "<custom-element>test3</custom-element>bla", config: "{ "elements": ["custom-element"\] }".]
expected: FAIL
[Testcase #16, "<custom-element>test5</custom-element>bla", config: "{ "removeElements": ["custom-element"\] }".]
expected: FAIL
[Testcase #17, "<script>alert('i am a test')</script>", config: "{ "removeElements": ["script"\] }".]
expected: FAIL
[Testcase #18, "<div>balabala<i>test</i></div><test-element>t</test-element>", config: "{ "removeElements": ["test-element", "i"\] }".]
expected: FAIL
[Testcase #19, "<div>balabala<i>i</i><p>t</p></div>", config: "{ "removeElements": ["dl", "p"\] }".]
expected: FAIL
[Testcase #20, "<div>test<div>p</div>tt<p>div</p></div>", config: "{ "elements": ["p"\], "replaceWithChildrenElements": ["div"\] }".]
expected: FAIL
[Testcase #22, "<p id='test'>Click.</p>", config: "{ "removeAttributes": [\] }".]
expected: FAIL
[Testcase #23, "<p id='test'>Click.</p>", config: "{ "removeAttributes": ["id"\] }".]
expected: FAIL
[Testcase #24, "<p id='test'>Click.</p>", config: "{ "elements": ["p"\], "removeAttributes": ["id"\] }".]
expected: FAIL
[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"\] }".]
expected: FAIL
[Testcase #26, "<p id='p' title='p'>P</p><div id='div' title='div'>DIV</div>", config: "{ "elements": [\n { "name": "p", "attributes": ["title"\] },\n { "name": "div", "attributes": ["id"\] }\n\]}".]
expected: FAIL
[Testcase #27, "<p id='p' title='p'>P</p><div id='div' title='div'>DIV</div>", config: "{ "elements":\n [\n { "name": "p", "removeAttributes": ["title"\] },\n { "name": "div", "removeAttributes": ["id"\] }\n \]\n}".]
expected: FAIL
[Testcase #29, "<div id='div' title='div'>DIV</div>", config: "{ "elements": [{ "name": "div", "attributes": ["id", "title"\] }\],\n "attributes": [\]}".]
expected: FAIL
[Testcase #30, "<div id='div' title='div'>DIV</div>", config: "{\n "elements": [{ "name": "div", "attributes": [\] }\],\n "removeAttributes": ["id", "title"\]\n}".]
expected: FAIL
[Testcase #31, "<div id='div' title='div'>DIV</div>", config: "{\n "elements": [{ "name": "div", "removeAttributes": ["id", "title"\] }\],\n "attributes": ["id", "title"\]\n}".]
expected: FAIL
[Testcase #32, "<p id='test' onclick='a= 123'>Click.</p>", config: "{ "attributes": ["id"\] }".]
expected: FAIL
[Testcase #34, "<template><script>test</script><div>hello</div></template>", config: "{ "elements": ["template", "div"\] }".]
expected: FAIL
[Testcase #35, "<a href='javascript:evil.com'>Click.</a>", config: "undefined".]
expected: FAIL
[Testcase #36, "<a href=' javascript:evil.com'>Click.</a>", config: "undefined".]
expected: FAIL
[Testcase #37, "<a href='http:evil.com'>Click.</a>", config: "undefined".]
expected: FAIL
[Testcase #38, "<area href='javascript:evil.com'>", config: "{}".]
expected: FAIL
[Testcase #39, "<area href=' javascript:evil.com'>", config: "{}".]
expected: FAIL
[Testcase #40, "<area href='http:evil.com'>", config: "{}".]
expected: FAIL
[Testcase #41, "<form action='javascript:evil.com'>Click.</form>", config: "{}".]
expected: FAIL
[Testcase #42, "<form action=' javascript:evil.com'>Click.</form>", config: "{}".]
expected: FAIL
[Testcase #43, "<form action='http:evil.com'>Click.</form>", config: "{}".]
expected: FAIL
[Testcase #44, "<input formaction='javascript:evil.com'>", config: "{}".]
expected: FAIL
[Testcase #45, "<input formaction=' javascript:evil.com'>", config: "{}".]
expected: FAIL
[Testcase #46, "<input formaction='http:evil.com'>", config: "{}".]
expected: FAIL
[Testcase #47, "<button formaction='javascript:evil.com'>Click.</button>", config: "{}".]
expected: FAIL
[Testcase #48, "<button formaction=' javascript:evil.com'>Click.</button>", config: "{}".]
expected: FAIL
[Testcase #49, "<button formaction='http:evil.com'>Click.</button>", config: "{}".]
expected: FAIL
[Testcase #50, "<p>Some text</p></body><!-- 1 --></html><!-- 2 --><p>Some more text</p>", config: "undefined".]
expected: FAIL
[Testcase #51, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>", config: "undefined".]
expected: FAIL
[Testcase #52, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>", config: "{ "comments": true }".]
expected: FAIL
[Testcase #53, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>", config: "{ "comments": false }".]
expected: FAIL
[Testcase #54, "<p>comment<!-- hello -->in<!-- </p> -->text</p>", config: "undefined".]
expected: FAIL
[Testcase #55, "<p>comment<!-- hello -->in<!-- </p> -->text</p>", config: "{ "comments": true }".]
expected: FAIL
[Testcase #56, "<p>comment<!-- hello -->in<!-- </p> -->text</p>", config: "{ "comments": false }".]
expected: FAIL
[Testcase #57, "<svg></svg>", config: "{ "elements": ["svg"\] }".]
expected: FAIL
[Testcase #58, "<div><svg></svg></div>", config: "{ "elements": ["div", "svg"\] }".]
expected: FAIL
[Testcase #59, "<div>balabala<dl>test</dl></div>", config: "{ "removeElements": ["I", "DL"\] }".]
expected: FAIL
[Testcase #60, "<div>balabala<dl>test</dl></div>", config: "{ "removeElements": ["i", "dl"\] }".]
expected: FAIL
[Testcase #61, "<DIV>balabala<DL>test</DL></DIV>", config: "{ "removeElements": ["i", "dl"\] }".]
expected: FAIL
[Testcase #62, "<p id="test">Click.</p>", config: "{ "removeAttributes": ["ID"\] }".]
expected: FAIL
[Testcase #63, "<p ID="test">Click.</p>", config: "{ "removeAttributes": ["ID"\] }".]
expected: FAIL
[Testcase #64, "<p ID="test">Click.</p>", config: "{ "removeAttributes": ["id"\] }".]
expected: FAIL
[Testcase #65, "<div>balabala<i>test</i></div><test>t</test><custom-element>custom-element</custom-element>", config: "{ "removeElements": [123, "test", "i", "custom-element"\] }".]
expected: FAIL
[Testcase #66, "<div>balabala<i>test</i></div><test>t</test><custom-element>custom-element</custom-element>", config: "{ "replaceWithChildrenElements": [123, "test", "i", "custom-element"\],\n "elements": ["div"\]}".]
expected: FAIL
[Testcase #67, "<div>test<div>p</div>tt<p>div</p></div><test>test</test>", config: "{ "elements": ["p", "test"\], "replaceWithChildrenElements": ["div"\] }".]
expected: FAIL
[Testcase #68, "test<div>p</div>tt<p>div</p><test>test</test>", config: "{ "elements": ["p", "test"\], "replaceWithChildrenElements": ["div"\] }".]
expected: FAIL
[Testcase #69, "<div hello='1' world='2'><b hello='3' world='4'>", config: "{ "elements": ["div", "b"\], "attributes": ["hello", "world"\] }".]
expected: FAIL
[Testcase #70, "<div hello='1' world='2'><b hello='3' world='4'>", config: "{ "elements": ["div", "b"\], "removeAttributes": ["hello", "world"\] }".]
expected: FAIL
[Testcase #71, "<table><div><td>", config: "{ "replaceWithChildrenElements": ["table"\] }".]
expected: FAIL
[Testcase #72, "<template><div>Hello</div></template>", config: "{}".]
expected: FAIL
[Testcase #73, "<template><div>Hello</div></template>", config: "{ "elements": ["div"\]}".]
expected: FAIL
[Testcase #74, "<template><div>Hello</div></template>", config: "{ "elements": ["template"\]}".]
expected: FAIL
[Testcase #75, "<template><div>Hello</div></template>", config: "{ "elements": ["div", "template"\]}".]
expected: FAIL
[Testcase #76, "<template><div>Hello</div></template>", config: "{ "elements": ["template"\], "replaceWithChildrenElements": ["div"\]}".]
expected: FAIL
[Testcase #77, "<a href="about:blank" rel="opener">Click.</a>", config: "undefined".]
expected: FAIL
[Testcase #78, "<div><b><em><foo><foob><fooc><aside></b></em></div>", config: "{ "removeElements": ["em"\] }".]
expected: FAIL