Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 5483370.html
blob6d3b23c974eaf95ec26c169cefab07aa705fe822
1 <p>This tests for a problem where empty table rows after the selection being deleted would be removed incorrectly. Only the last letter in 'foo' should be removed during this delete.</p>
2 <div contenteditable="true"><table border="1"><tr><td id="td">foo</td><td></td></tr><tr><td></td><td></td></tr></table</div>
4 <script>
5 td = document.getElementById("td");
6 sel = window.getSelection();
7 sel.collapse(td, 1);
8 document.execCommand("Delete");
9 </script>