4 This tests outdenting
"two". You should see
1 before
"one",
"two", and
"three" but
2 before
"four".
5 <ol id=
"e" contenteditable=
"true">
14 <li>Before:
<span id=
"c1"></span></li>
15 <li>After:
<span id=
"c2"></span></li>
18 <script type=
"text/javascript">
20 if (window
.testRunner
) {
21 testRunner
.dumpEditingCallbacks();
22 testRunner
.dumpAsText();
25 var e
= document
.getElementById('e');
27 document
.getElementById('c1').appendChild(document
.createTextNode(e
.innerHTML
));
29 var s
= window
.getSelection();
30 var r
= document
.createRange();
31 r
.selectNode(document
.getElementById('test'));
34 document
.execCommand("Outdent", false, "");
36 document
.getElementById('c2').appendChild(document
.createTextNode(e
.innerHTML
));