blob: a1c42fdc8009922396c4baf9c118248d7a2b3427 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div contenteditable id="root"><span id="wrapper">First line<br>Second line</span></div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description("This sets the selection to the end of the first line, and hits the enter key.\n"
+ "Expected behavior: a div is created around the second line, and the cursor is placed at the "
+ "start of the second line. See bug 61594.");
var sel = window.getSelection();
sel.setPosition(document.getElementById("wrapper"), 1);
document.execCommand("InsertParagraph", false, null);
Markup.dump(root);
</script>
</html>