3 testRunner
.dumpEditingCallbacks();
5 <p>This tests Insert{Un}OrderedList on a range selection that is entirely within one list.
</p>
6 <div id=
"test" contenteditable=
"true"><ol><li><span id=
"start">None of the
</span></li><li>selected content
</li><li>should be
</li><li><span id=
"end">in a list.
</span></li></ol><ol><li>This should be in a list and should not be selected.
</li></ol></div>
8 var s
= window
.getSelection();
9 var start
= document
.getElementById("start").firstChild
;
10 var end
= document
.getElementById("end").firstChild
;
11 s
.setBaseAndExtent(start
, 2, end
, 2);
13 document
.execCommand("InsertOrderedList", false, "foo");