1 <p>This tests for a bug where hitting return inside an empty paragraph in a non-empty list item would remove it.</p>
2 <div id="div" contenteditable="true">
3 <ul><li id="li">foo<br><br></li></ul>
7 li = document.getElementById("li");
8 sel = window.getSelection();
9 sel.setPosition(li, li.childNodes.length);
10 document.execCommand("InsertParagraph");