Source code

Revision control

Copy as Markdown

Other Tools

[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".]
expected: FAIL
[Testcase #1, "<b>bla</b>".]
expected: FAIL
[Testcase #2, "<a<embla".]
expected: FAIL
[Testcase #3, "<html><head></head><body>test</body></html>".]
expected: FAIL
[Testcase #4, "<div>test".]
expected: FAIL
[Testcase #5, "<script>alert('i am a test')</script>".]
expected: FAIL
[Testcase #6, "hello<script>alert('i am a test')</script>".]
expected: FAIL
[Testcase #7, "<div><b>hello<script>alert('i am a test')</script>".]
expected: FAIL
[Testcase #8, "<p onclick='a= 123'>Click.</p>".]
expected: FAIL
[Testcase #9, "<plaintext><p>text</p>".]
expected: FAIL
[Testcase #10, "<xmp>TEXT</xmp>".]
expected: FAIL
[Testcase #11, "test".]
expected: FAIL
[Testcase #12, "test".]
expected: FAIL
[Testcase #13, "<div>test</div><p>bla".]
expected: FAIL
[Testcase #14, "<custom-element>test</custom-element>bla".]
expected: FAIL
[Testcase #15, "<custom-element>test</custom-element>bla".]
expected: FAIL
[Testcase #16, "<custom-element>test</custom-element>bla".]
expected: FAIL
[Testcase #17, "<custom-element>test</custom-element>bla".]
expected: FAIL
[Testcase #18, "<custom-element>test</custom-element>bla".]
expected: FAIL
[Testcase #19, "<script>alert('i am a test')</script>".]
expected: FAIL
[Testcase #20, "<div>balabala<i>test</i></div><test-element>t</test-element>".]
expected: FAIL
[Testcase #21, "<div>balabala<i>i</i><p>t</p></div>".]
expected: FAIL
[Testcase #22, "<div>test<div>p</div>tt<p>div</p></div>".]
expected: FAIL
[Testcase #23, "<div>test</div><p>bla".]
expected: FAIL
[Testcase #24, "<p id='test'>Click.</p>".]
expected: FAIL
[Testcase #25, "<p id='test'>Click.</p>".]
expected: FAIL
[Testcase #26, "<p id='p' data-attribute-with-dashes='123'>Click.</p><script>document.getElementById('p').dataset.attributeWithDashes=123;</script>".]
expected: FAIL
[Testcase #27, "<p id='p' title='p'>P</p><div id='div' title='div'>DIV</div>".]
expected: FAIL
[Testcase #28, "<p id='p' title='p'>P</p><div id='div' title='div'>DIV</div>".]
expected: FAIL
[Testcase #29, "<div id='div' title='div'>DIV</div>".]
expected: FAIL
[Testcase #30, "<div id='div' title='div'>DIV</div>".]
expected: FAIL
[Testcase #31, "<div id='div' title='div'>DIV</div>".]
expected: FAIL
[Testcase #32, "<div id='div' title='div'>DIV</div>".]
expected: FAIL
[Testcase #33, "<p id='test' onclick='a= 123'>Click.</p>".]
expected: FAIL
[Testcase #34, "<p style='color: black'>Click.</p>".]
expected: FAIL
[Testcase #35, "<template><script>test</script><div>hello</div></template>".]
expected: FAIL
[Testcase #36, "<a href='javascript:evil.com'>Click.</a>".]
expected: FAIL
[Testcase #37, "<a href=' javascript:evil.com'>Click.</a>".]
expected: FAIL
[Testcase #38, "<a href='http:evil.com'>Click.</a>".]
expected: FAIL
[Testcase #39, "<area href='javascript:evil.com'>Click.</area>".]
expected: FAIL
[Testcase #40, "<area href=' javascript:evil.com'>Click.</area>".]
expected: FAIL
[Testcase #41, "<area href='http:evil.com'>Click.</area>".]
expected: FAIL
[Testcase #42, "<form action='javascript:evil.com'>Click.</form>".]
expected: FAIL
[Testcase #43, "<form action=' javascript:evil.com'>Click.</form>".]
expected: FAIL
[Testcase #44, "<form action='http:evil.com'>Click.</form>".]
expected: FAIL
[Testcase #45, "<input formaction='javascript:evil.com'>Click.</input>".]
expected: FAIL
[Testcase #46, "<input formaction=' javascript:evil.com'>Click.</input>".]
expected: FAIL
[Testcase #47, "<input formaction='http:evil.com'>Click.</input>".]
expected: FAIL
[Testcase #48, "<button formaction='javascript:evil.com'>Click.</button>".]
expected: FAIL
[Testcase #49, "<button formaction=' javascript:evil.com'>Click.</button>".]
expected: FAIL
[Testcase #50, "<button formaction='http:evil.com'>Click.</button>".]
expected: FAIL
[Testcase #51, "<p>Some text</p></body><!-- 1 --></html><!-- 2 --><p>Some more text</p>".]
expected: FAIL
[Testcase #52, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>".]
expected: FAIL
[Testcase #53, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>".]
expected: FAIL
[Testcase #54, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>".]
expected: FAIL
[Testcase #55, "<p>comment<!-- hello -->in<!-- </p> -->text</p>".]
expected: FAIL
[Testcase #56, "<p>comment<!-- hello -->in<!-- </p> -->text</p>".]
expected: FAIL
[Testcase #57, "<p>comment<!-- hello -->in<!-- </p> -->text</p>".]
expected: FAIL
[Testcase #58, "<svg></svg>".]
expected: FAIL
[Testcase #59, "<div><svg></svg></div>".]
expected: FAIL
[Testcase #60, "<div>balabala<dl>test</dl></div>".]
expected: FAIL
[Testcase #61, "<div>balabala<dl>test</dl></div>".]
expected: FAIL
[Testcase #62, "<DIV>balabala<DL>test</DL></DIV>".]
expected: FAIL
[Testcase #63, "<p id="test">Click.</p>".]
expected: FAIL
[Testcase #64, "<p ID="test">Click.</p>".]
expected: FAIL
[Testcase #65, "<p ID="test">Click.</p>".]
expected: FAIL
[Testcase #66, "<div>balabala<i>test</i></div><test>t</test><custom-element>custom-element</custom-element>".]
expected: FAIL
[Testcase #67, "<div>balabala<i>test</i></div><test>t</test><custom-element>custom-element</custom-element>".]
expected: FAIL
[Testcase #68, "<div>test<div>p</div>tt<p>div</p></div><test>test</test>".]
expected: FAIL
[Testcase #69, "<div>balabala<i>test</i></div><test>t</test><custom-element>custom-element</custom-element>".]
expected: FAIL
[Testcase #70, "<div>balabala<i>test</i></div><test>t</test><custom-element>custom-element</custom-element>".]
expected: FAIL
[Testcase #71, "<div>test<div>p</div>tt<p>div</p><test>test</test></div>".]
expected: FAIL
[Testcase #72, "<div hello='1' world='2'><b hello='3' world='4'>".]
expected: FAIL
[Testcase #73, "<div hello='1' world='2'><b hello='3' world='4'>".]
expected: FAIL
[Testcase #74, "<div hello='1' world='2'><b hello='3' world='4'>".]
expected: FAIL
[Testcase #75, "<div hello='1' world='2'><b hello='3' world='4'>".]
expected: FAIL