| <p>This tests list creation in an empty line. The caret should end up in the empty list item.</p> | |
| <div contenteditable="true" id="div">Paragraph One.<br><br>Paragraph Two.</div> | |
| <script> | |
| var div = document.getElementById("div"); | |
| var sel = window.getSelection(); | |
| sel.collapse(div, 0); | |
| sel.modify("move", "forward", "line"); | |
| document.execCommand("InsertOrderedList"); | |
| </script> |