3 testRunner
.dumpEditingCallbacks();
5 <p>This tests deletion of a selection that spans multiple cells. Just table content should be removed, not table structure.
</p>
6 <div id=
"test" contenteditable=
"true"><table border=
"1"><tr><td><div>These two pieces of text
<span id=
"start">blah
</span></div></td><td><div><span id=
"end">blah
</span> should be in different cells.
</div></td></tr></table>
9 var start
= document
.getElementById("start").firstChild
;
10 var end
= document
.getElementById("end").firstChild
;
12 var s
= window
.getSelection();
13 s
.setBaseAndExtent(start
, 0, end
, end
.length
);
14 document
.execCommand("Delete");