1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml">
7 testRunner
.dumpAsText();
9 var selection
= window
.getSelection();
10 function runEditingTest() {
11 var elem
= document
.getElementById("test2");
12 selection
.collapse(elem
, 0);
13 for (i
= 0; i
< 21; i
++)
14 selection
.modify("move", "forward", "character");
15 document
.execCommand("Delete");
17 // Test completed without crash.
18 document
.getElementById("test1").removeChild(elem
);
19 document
.getElementById("result").innerHTML
= "PASS";
23 <body onload
="runEditingTest()">
24 <p
>This tests passes
if it does not crash
.</p
>
25 <div id
="result"></div
>
26 <div id
="test1" contenteditable
="">
27 <span id
="test2">Something Something
<br
/>
28 <svg xmlns
="http://www.w3.org/2000/svg">
29 <html xmlns
="http://www.w3.org/1999/xhtml">