blob: 3af0bca5c5ab79884c7638a0f381bdf50b465b07 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>//<![CDATA[
if (window.testRunner)
testRunner.dumpAsText();
var selection = window.getSelection();
function runEditingTest() {
var elem = document.getElementById("test2");
selection.collapse(elem, 0);
for (i = 0; i < 21; i++)
selection.modify("move", "forward", "character");
document.execCommand("Delete");
// Test completed without crash.
document.getElementById("test1").removeChild(elem);
document.getElementById("result").innerHTML = "PASS";
}
//]]></script>
</head>
<body onload="runEditingTest()">
<p>This tests passes if it does not crash.</p>
<div id="result"></div>
<div id="test1" contenteditable="">
<span id="test2">Something Something <br/>
<svg xmlns="http://www.w3.org/2000/svg">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
</body>
</html>
</svg>
</span>
</div>
</body>
</html>