Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / inserting / 5549929-2.html
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>
5 </div>
6
7 <script>
8 div = document.getElementById("div");
9 div.focus();
10 sel = window.getSelection();
11 sel.collapse(div, 0);
12 sel.modify("extend", "forward", "paragraph");
13 document.execCommand("InsertLineBreak");
14 </script>