1 <script src=
"../../resources/dump-as-markup.js"></script>
2 <p>This tests Insert{Un}OrderedList on a range selection that contains a mix of list and non-list content.
</p>
3 <div id=
"test" contenteditable=
"true">asd
<span id=
"start">foo
</span><br><ul><li>bar
</li></ul>baz
<br>foo
<ol><li>bar
</li></ol><span id=
"end">baz
</span></div>
5 var s
= window
.getSelection();
6 var start
= document
.getElementById("start").firstChild
;
7 var end
= document
.getElementById("end").firstChild
;
8 s
.setBaseAndExtent(start
, 2, end
, 2);
9 document
.execCommand("InsertOrderedList", false, "");