blob: 28edda62bc75309c10e129c9d05a1183384db29a [file] [log] [blame]
<p>This tests to make sure that a br isn't inserted into a tab span during an InsertLineBreak operation. You can test for its existence with the DOM inspector or you can look at the render tree.</p>
<div id="div" contenteditable="true">
<div><span style="white-space:pre">&#9;</span>foo</div>
<div><span style="white-space:pre">&#9;</span>bar</div>
</div>
<script>
div = document.getElementById("div");
div.focus();
sel = window.getSelection();
sel.collapse(div, 0);
sel.modify("extend", "forward", "paragraph");
document.execCommand("InsertLineBreak");
</script>