1 <p>This tests for a hang when turning a selection that starts before a table and ends inside that table into a list. You should see one list item with the table.
<b>There is a bug that causes an extra empty list item to be created after the table.
</b></p>
2 <div id=
"div" contenteditable=
"true"><table border=
"1" width=
"100px"><tr><td>foo
<br><br><br><span id=
"span">bar
</span></td></tr></table><br></div>
6 window
.testRunner
.dumpAsText();
7 div
= document
.getElementById("div");
8 span
= document
.getElementById("span");
10 sel
= window
.getSelection();
11 sel
.setBaseAndExtent(div
, 0, span
, span
.childNodes
.length
);
12 document
.execCommand("InsertOrderedList");