| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <body> | |
| 3 <div contenteditable="true"> | |
| 4 This tests outdenting ordered lists that contains an unordered-list. You should
see 1 through 3 before numbers "two" through "four". | |
| 5 <ol id="e"> | |
| 6 <ol><li>one</li> | |
| 7 <li id="start">two</li></ol> | |
| 8 <ul><li>three</li></ul> | |
| 9 <ol><li id="end">four</li></ol> | |
| 10 </ol> | |
| 11 </div> | |
| 12 | |
| 13 <ul> | |
| 14 <li>Before:<span id="c1"></span></li> | |
| 15 <li>After:<span id="c2"></span></li> | |
| 16 </ul> | |
| 17 | |
| 18 <script type="text/javascript"> | |
| 19 | |
| 20 if (window.testRunner) { | |
| 21 testRunner.dumpEditingCallbacks(); | |
| 22 testRunner.dumpAsText(); | |
| 23 } | |
| 24 | |
| 25 var e = document.getElementById('e'); | |
| 26 | |
| 27 document.getElementById('c1').appendChild(document.createTextNode(e.innerHTML)); | |
| 28 | |
| 29 var s = window.getSelection(); | |
| 30 var r = document.createRange(); | |
| 31 r.setStart(document.getElementById('start'),0); | |
| 32 r.setEnd(document.getElementById('end'),1); | |
| 33 s.removeAllRanges(); | |
| 34 s.addRange(r); | |
| 35 document.execCommand("Outdent", false, ""); | |
| 36 | |
| 37 document.getElementById('c2').appendChild(document.createTextNode(e.innerHTML)); | |
| 38 | |
| 39 </script> | |
| OLD | NEW |