1 <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>
2 <div id="div" contenteditable="true">
3 <div><span class="Apple-tab-span" style="white-space:pre"> </span>foo</div>
4 <div><span class="Apple-tab-span" style="white-space:pre"> </span>bar</div>
8 div = document.getElementById("div");
10 sel = window.getSelection();
12 sel.modify("extend", "forward", "paragraph");
13 document.execCommand("InsertLineBreak");