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