blob: d8861002e2f05f671fe72daa7d2d79531d23c9a2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
<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>
<div contenteditable="true"><ul><li>foo</li><li id="li">bar</li></ul></div>
<script>
var li = document.getElementById("li");
var sel = window.getSelection();
sel.collapse(li, 0);
document.execCommand("InsertOrderedList");
</script>
|