1 <p id="p">This tests for a hang when creating a list from a particular selection, of table content that is already in a list item. The table should be in a list, and each table cell should contain a list item.</p>
2 <div id="div" contenteditable="true"><ul><li id="li"><table border="1"><tr><td id="td">foo</td><td>bar</td></tr></table></li></ul>
7 li = document.getElementById("li");
8 td = document.getElementById("td");
9 window.getSelection().setBaseAndExtent(td, 0, li, li.childNodes.length);
10 document.execCommand("InsertUnorderedList");
12 if (window.layoutTestController) {
13 window.layoutTestController.dumpAsText();
14 div = document.getElementById("div");
15 p = document.getElementById("p");
16 document.body.innerText = p.innerText + "\n\nDOM:\n" + div.innerHTML;