1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
5 <script src=
"../../../http/tests/inspector/elements-test.js"></script>
8 function removeDoctype()
10 document
.removeChild(document
.firstChild
);
15 InspectorTest
.expandElementsTree(step1
);
19 InspectorTest
.addResult("Before remove doctype");
20 InspectorTest
.dumpElementsTree(null, 1);
21 InspectorTest
.evaluateInPage("removeDoctype()", step2
);
26 InspectorTest
.addResult("After remove doctype");
27 InspectorTest
.dumpElementsTree(null, 1);
28 InspectorTest
.completeTest();
35 <body onload=
"runTest()">
37 Tests that removing child from the document is handled properly in the elements panel.