blob: 19006e83f13a0ebdb31c99d83637a67740ef8c4c [file] [log] [blame]
<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.setPosition(div, 0);
sel.modify("move", "forward", "line");
document.execCommand("InsertOrderedList");
</script>