Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/base/crashtests/crashtests.list
<head>
<script>
<![CDATA[
function foo()
{
var r = document.createRange();
r.setStart(document.getElementById("a"), 0);
r.setEnd(document.getElementById("b"), 0);
window.getSelection().addRange(r);
var everything = document.getElementById("everything");
everything.remove();
document.documentElement.removeAttribute("class");
}
]]>
</script>
</head>
<body onload="setTimeout(foo, 30);">
<div id="everything">
<div id="a">
<span id="b" />
</div>
</div>
</body>
</html>