blob: d3e980454358ef4739c0b84d2f561644aebab847 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>
<span>
<span id="start"></span>
</span>
<span>
<span id="end"></span>
</span>
</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function runTest()
{
document.removeEventListener("DOMSubtreeModified", runTest, false);
document.body.innerHTML = 'PASS: does not crash';
}
document.addEventListener("DOMSubtreeModified", runTest, false);
var r = document.createRange();
r.setStartBefore(document.getElementById('start'));
r.setEndAfter(document.getElementById('end'));
r.extractContents();
</script>
</body>
</html>