Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 5126166.html
blob0bd51de857d13f373f3cab2ca1a4c8c66f6aea4c
1 <body>
2 <p>This tests deleting a selection that ends inside an empty table cell. No merging should happen, only editable selected content should be removed.</p>
3 <div contenteditable="true">
4 <table border="1"><tr>
5 <td></td>
6 <td id="start">Editable</td>
7 </tr></table>
8 <table border="1"><tr>
9 <td id="end"></td>
10 <td>There should be one empty cell to the left of this one.</td>
11 </tr></table>
12 </div>
14 <script>
15 var sel = window.getSelection();
16 var start = document.getElementById("start").firstChild;
17 var end = document.getElementById("end");
19 sel.setBaseAndExtent(start, 0, end, 0);
20 document.execCommand("Delete");
21 </script>
22 </body>