blob: 0d45d2ad7c9433110a45c1f1af2a0c47e9136a1c [file] [log] [blame]
<p>This tests inserting a line break at the end of a tab span. Below you should see 'foo' followed by an empty paragraph, with the caret in it.</p>
<div id="div" contenteditable="true">foo<span style="white-space:pre"> </span></div>
<script>
div = document.getElementById("div");
sel = window.getSelection();
sel.collapse(div, div.childNodes.length);
document.execCommand("InsertLineBreak");
</script>