gecko/layout/html/tests/block/bugs/22413.html

39 lines
841 B
HTML
Raw Normal View History

<html>
<body>
<p>
This should be the only visible text when the page has loaded, and is with
M11.
</p>
<div id="DescriptionText1">
<p>This paragraph disappears.</p>
</div>
<layer>
<div id="DescriptionText2">
<p>This is visible in M12 -- it should have disappeared.</p>
</div>
</layer>
<div id="DescriptionText3">
<layer>
<p>This is visible in M12 -- it should have disappeared.</p>
<layer>
</div>
<script LANGUAGE="JavaScript" type="text/javascript">
var n = document.getElementById("DescriptionText1");
while (n.hasChildNodes())
n.removeChild(n.firstChild);
n = document.getElementById("DescriptionText2");
while (n.hasChildNodes())
n.removeChild(n.firstChild);
n = document.getElementById("DescriptionText3");
while (n.hasChildNodes())
n.removeChild(n.firstChild);
</script>
</body>
</html>