4 This tests indenting "three" and "four". You should see 1 through 4 in order before numbers "two" through "five".
5 <ol id="e" contenteditable="true">
8 <li id="test1">three</li>
9 <li id="test2">four</li>
10 <ol><li>five</li></ol>
15 <li>Before:<span id="c1"></span></li>
16 <li>After:<span id="c2"></span></li>
19 <script type="text/javascript">
21 if (window.layoutTestController) {
22 layoutTestController.dumpEditingCallbacks();
23 layoutTestController.dumpAsText();
26 var e = document.getElementById('e');
28 document.getElementById('c1').appendChild(document.createTextNode(e.innerHTML));
30 var s = window.getSelection();
31 var r = document.createRange();
32 r.setStart(document.getElementById('test1'),0);
33 r.setEnd(document.getElementById('test2'),1);
36 document.execCommand("Indent", false, "");
38 document.getElementById('c2').appendChild(document.createTextNode(e.innerHTML));