Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 5433862-2.html
blob948c2add93bb4681d6c2bac5df463dc869ef2cef
1 <body>
2 <p>This tests for a bug where empty table rows well after the selection to delete were removed. There should be five rows in the table below, before and after the deletion.</p>
3 <div contenteditable="true">
4 <table border="1" cellpadding="5">
5 <tr><td id="start">foo</td><td>bar</td><td id="end">baz</td></tr>
6 <tr><td>foo</td><td>bar</td><td>baz</td></tr>
7 <tr><td><br></td><td><br></td><td><br></td></tr>
8 <tr><td><br></td><td><br></td><td><br></td></tr>
9 </table>
10 </div>
12 <script>
13 start = document.getElementById("start");
14 end = document.getElementById("end");
16 window.getSelection().setBaseAndExtent(start, 0, end, end.childNodes.length);
17 document.execCommand("Delete");
18 </script>
20 </body>