3 testRunner
.dumpEditingCallbacks();
5 <p>The three items below should be stitched together into one ordered list when you click the button.
</div>
6 <div contenteditable=
"true">
7 <div id=
"item1">foo
</div>
8 <div id=
"item2">bar
</div>
9 <div id=
"item3">baz
</div>
12 var s
= window
.getSelection();
13 s
.collapse(document
.getElementById("item1"), 0);
14 document
.execCommand("InsertOrderedList", false, "");
15 s
.collapse(document
.getElementById("item2"), 0);
16 document
.execCommand("InsertOrderedList", false, "");
17 s
.collapse(document
.getElementById("item3"), 0);
18 document
.execCommand("InsertOrderedList", false, "");