| <script src="../../resources/dump-as-markup.js"></script> |
| <p>This tests Insert{Un}OrderedList on a range selection that contains a mix of list and non-list content.</p> |
| <div id="test" contenteditable="true">asd<span id="start">foo</span><br><ul><li>bar</li></ul>baz<br>foo<ol><li>bar</li></ol><span id="end">baz</span></div> |
| <script> |
| var s = window.getSelection(); |
| var start = document.getElementById("start").firstChild; |
| var end = document.getElementById("end").firstChild; |
| s.setBaseAndExtent(start, 2, end, 2); |
| document.execCommand("InsertOrderedList", false, ""); |
| Markup.dump("test"); |
| </script> |