blob: ab792194a7943f994504fc785bc5a6cb4d4fd02d [file] [log] [blame]
<p>This tests for a bug where a newline inserted at the end of an anonymous block would be lost.</p>
<div id="div" contenteditable="true">foo<div>bar</div></div>
<script>
if (window.internals)
internals.settings.setEditingBehavior('mac');
var div = document.getElementById("div");
var sel = window.getSelection();
sel.collapse(div, 0);
sel.modify("move", "forward", "word");
document.execCommand("InsertLineBreak");
</script>