[css-grid] Scroll reset position when updating inner html on content
[WebKit-https.git] / LayoutTests / editing / deleting / table-cells.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests deletion of a selection that spans multiple cells.  Just table content should be removed, not table structure.</p>
6 <div id="test" contenteditable="true"><table border="1"><tr><td><div>These two pieces of text<span id="start">blah</span></div></td><td><div><span id="end">blah</span> should be in different cells.</div></td></tr></table>
7
8 <script>
9 var start = document.getElementById("start").firstChild;
10 var end = document.getElementById("end").firstChild;
11
12 var s = window.getSelection();
13 s.setBaseAndExtent(start, 0, end, end.length);
14 document.execCommand("Delete");
15 </script>