2 <p>This tests for a bug where empty table rows well after the selection to delete were removed. There should be five rows in the table below, before and after the deletion.
</p>
3 <div contenteditable=
"true">
4 <table border=
"1" cellpadding=
"5">
5 <tr><td id=
"start">foo
</td><td>bar
</td><td id=
"end">baz
</td></tr>
6 <tr><td>foo
</td><td>bar
</td><td>baz
</td></tr>
7 <tr><td><br></td><td><br></td><td><br></td></tr>
8 <tr><td><br></td><td><br></td><td><br></td></tr>
13 start
= document
.getElementById("start");
14 end
= document
.getElementById("end");
16 window
.getSelection().setBaseAndExtent(start
, 0, end
, end
.childNodes
.length
);
17 document
.execCommand("Delete");