4 <div contenteditable id="root"><span id="wrapper">First line<br>Second line</span></div>
5 <script src="../../resources/dump-as-markup.js"></script>
7 Markup.description("This sets the selection to the end of the first line, and hits the enter key.\n"
8 + "Expected behavior: a div is created around the second line, and the cursor is placed at the "
9 + "start of the second line. See bug 61594.");
10 var sel = window.getSelection();
11 sel.collapse(document.getElementById("wrapper"), 1);
12 document.execCommand("InsertParagraph", false, null);