blob: c2a3db1f83189b40b559ba680a076617a045a865 [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.setPosition(div, 0);
sel.modify("move", "forward", "word");
document.execCommand("InsertLineBreak");
</script>