1 <p>This tests for a crash when performing InsertOrderedList on an unordered list item. You should see 'foo' and 'bar' each in their own ordered list items.
</p>
2 <div id=
"div" contenteditable=
"true"><ul><li id=
"li1">foo
</li><li id=
"li2">bar
<br></li></ul></div>
6 window
.testRunner
.dumpAsText();
8 var li
= document
.getElementById("li1");
9 var sel
= window
.getSelection();
11 sel
.setBaseAndExtent(li
, 0, li
, li
.childNodes
.length
);
12 document
.execCommand("InsertOrderedList");
14 li
= document
.getElementById("li2");
15 sel
.setBaseAndExtent(li
, 0, li
, li
.childNodes
.length
);
16 document
.execCommand("InsertOrderedList");