Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 5469868.html
blobfc4766ea2917bbc46f5f29a0ca41ba7c38f1c399
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>
4 <script>
5 if (window.testRunner)
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");
13 </script>