blob: b4a09f6c6265a57ca49e1b13c74214dfa2f42f1f [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/dump-as-markup.js"></script>
<div id="div" contenteditable="true"><input type="text"><input type="text"></div>
<script>
Markup.description("This tests for a bug where InsertLineBreak would insert a '\\n' instead of a <br> if the caret was set just before an input field. There should be a br element between two input elements.");
div = document.getElementById("div");
window.getSelection().collapse(div, 1);
document.execCommand("InsertLineBreak");
Markup.dump(div);
</script>
</body>
</html>