blob: 7537dfb40176fd6a23e135d044cdcce349ea1449 [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.collapse(div, 0);
sel.modify("move", "forward", "line");
document.execCommand("InsertOrderedList");
</script>