1 <div id=
"description">This tests deleting a selection that starts at the beginning of an editable pocket inside a non-editable table. The caret should not disappear during the delete and should be placed inside the editable span. When text is then inserted, it should be placed inside that span.
</div>
2 <div id=
"edit" contentEditable=
"true">
3 <div contentEditable=
"false"><span> </span><span contentEditable=
"true" id=
"start">Hello
</span></div>
4 <div id=
"end"><br></div>
9 window
.testRunner
.dumpAsText();
10 start
= document
.getElementById("start");
11 end
= document
.getElementById("end");
12 s
= window
.getSelection();
13 s
.setBaseAndExtent(start
, 0, end
, 0);
14 document
.execCommand("Delete");
15 document
.execCommand("InsertText", false, "Text");
16 if (window
.testRunner
)
17 document
.body
.innerText
= document
.getElementById("description").innerText
+ "\n" + document
.getElementById("edit").innerHTML
;