1 <p>This tests to see that deleting a selection that starts just before a table and ends inside the table does not insert a placeholder br unnecessarily. You should see two ToDos, one empty. The caret should be just before the second.
</p>
2 <div contenteditable=
"true" id=
"div">
3 <table contenteditable=
"false"><tr><td>⇒</td><td contenteditable=
"true">ToDo Content
</td><td>⇣</td></tr></table>
4 <table contenteditable=
"false" id=
"start"><tr><td>⇒</td><td contenteditable=
"true" id=
"end">ToDo Content
</td><td>⇣</td></tr></table>
8 var start
= document
.getElementById("start");
9 var end
= document
.getElementById("end");
10 var sel
= window
.getSelection();
11 sel
.setBaseAndExtent(start
, 0, end
, end
.childNodes
.length
);
12 document
.execCommand("Delete");