1 <html xmlns="http://www.w3.org/1999/xhtml">
\r
4 if (window.layoutTestController)
\r
5 layoutTestController.dumpAsText();
\r
7 var selection = window.getSelection();
\r
8 function runEditingTest() {
\r
9 var elem = document.getElementById("test2");
\r
10 selection.setPosition(elem, 0);
\r
11 for (i = 0; i < 21; i++)
\r
12 selection.modify("move", "forward", "character");
\r
13 document.execCommand("Delete");
\r
15 // Test completed without crash.
\r
16 document.getElementById("test1").removeChild(elem);
\r
17 document.getElementById("result").innerHTML = "PASS";
\r
21 <body onload="runEditingTest()">
\r
22 <p>This tests passes if it does not crash.</p>
\r
23 <div id="result"></div>
\r
24 <div id="test1" contenteditable="">
\r
25 <span id="test2">Something Something <br/>
\r
26 <svg xmlns="http://www.w3.org/2000/svg">
\r
27 <html xmlns="http://www.w3.org/1999/xhtml">
\r