Source code
Revision control
Copy as Markdown
Other Tools
[sethtml-tree-construction.tentative.html]
expected: [OK, ERROR, CRASH]
[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 #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 #28, "<div id='div' title='div'>DIV</div>", config: "{ "elements": [{ "name": "div", "attributes": ["id"\], "removeAttributes": ["id"\] }\]}".]
expected: FAIL
[Testcase #20, "<div>test<div>p</div>tt<p>div</p></div>", config: "{ "elements": ["p"\], "replaceWithChildrenElements": ["div"\] }".]
expected:
if (os == "mac") and not debug: [PASS, FAIL]
if (os == "android") and not debug: [PASS, FAIL]
[Testcase #75, "<template><div>Hello</div></template>", config: "{ "elements": ["template"\], "replaceWithChildrenElements": ["div"\]}".]
expected:
if (os == "mac") and not debug: [PASS, FAIL]
if (os == "android") and not debug: [PASS, 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:
if (os == "mac") and not debug: [PASS, FAIL]
if (os == "android") and not debug: [PASS, FAIL]
[Testcase #67, "<div>test<div>p</div>tt<p>div</p></div><test>test</test>", config: "{ "elements": ["p", "test"\], "replaceWithChildrenElements": ["div"\] }".]
expected:
if (os == "mac") and not debug: [PASS, FAIL]
if (os == "android") and not debug: [PASS, FAIL]
[Testcase #68, "test<div>p</div>tt<p>div</p><test>test</test>", config: "{ "elements": ["p", "test"\], "replaceWithChildrenElements": ["div"\] }".]
expected:
if (os == "mac") and not debug: [PASS, FAIL]
if (os == "android") and not debug: [PASS, FAIL]