Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / 4960120-2.html
blobab792194a7943f994504fc785bc5a6cb4d4fd02d
1 <p>This tests for a bug where a newline inserted at the end of an anonymous block would be lost.</p>
2 <div id="div" contenteditable="true">foo<div>bar</div></div>
4 <script>
5 if (window.internals)
6 internals.settings.setEditingBehavior('mac');
7 var div = document.getElementById("div");
8 var sel = window.getSelection();
10 sel.collapse(div, 0);
11 sel.modify("move", "forward", "word");
13 document.execCommand("InsertLineBreak");
14 </script>