4c4f0e67fba74b33a14f5c0db00a988b19668137
[WebKit-https.git] / LayoutTests / editing / deleting / 5433862-1.html
1 <body>
2     
3 <p>This tests for a crash when removing a selection ends with a fully selected table row.</p>
4
5 <div contenteditable="true">
6 <div id="start">foo<br><br></div>
7 <table border="1">
8 <tr><td>foo</td><td>bar</td><td id="end"></td></tr>
9 <tr><td>foo</td><td>bar</td><td>baz</td></tr>
10 </table>
11 </div>
12
13 <script>
14 if (window.layoutTestController)
15     window.layoutTestController.dumpAsText();
16     
17 start = document.getElementById("start");
18 end = document.getElementById("end");
19
20 window.getSelection().setBaseAndExtent(start, start.childNodes.length, end, end.childNodes.length);
21 document.execCommand("Delete");
22 </script>
23
24 </body>