Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 5144139-2.html
blob1d27e7cb0948776d82a5dd9536f9d86be7802434
1 <p>This tests to see that deleting a selection that starts just before a table and ends inside the table does not insert a placeholder br unnecessarily. You should see two ToDos, one empty. The caret should be just before the second.</p>
2 <div contenteditable="true" id="div">
3 <table contenteditable="false"><tr><td>&#x21D2;</td><td contenteditable="true">ToDo Content</td><td>&#x21E3;</td></tr></table>
4 <table contenteditable="false" id="start"><tr><td>&#x21D2;</td><td contenteditable="true" id="end">ToDo Content</td><td>&#x21E3;</td></tr></table>
5 </div>
7 <script>
8 var start = document.getElementById("start");
9 var end = document.getElementById("end");
10 var sel = window.getSelection();
11 sel.setBaseAndExtent(start, 0, end, end.childNodes.length);
12 document.execCommand("Delete");
13 </script>