1 <p>This tests to see that creating an ordered list item from the last list item in an unordered list creates a new list that is not a sublist of the original one.</p>
2 <div contenteditable="true"><ul><li>foo</li><li id="li">bar</li></ul></div>
5 var li = document.getElementById("li");
6 var sel = window.getSelection();
8 sel.setPosition(li, 0);
9 document.execCommand("InsertOrderedList");