2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / editing / deleting / 4866671.html
blobb4b3a51f67d466451a22693710077eb2048891f3
1 <p>This tests for a crash when triple-click/deleting the content in a list item that is at the end of the document, when there is a div with -webkit-user-select:none after the list item.</p>
2 <div id="div" contenteditable="true"><ul><li>One</li><li id="start">Two</li><span id="end" style="-webkit-user-select:none"><img src="../resources/abe.png"></span></ul></div>
4 <script>
5 var start = document.getElementById("start");
6 var end = document.getElementById("end");
7 var sel = window.getSelection();
8 sel.setBaseAndExtent(start, 0, end, 0);
10 sel.modify("extend", "forward", "paragraph");
12 document.execCommand("Delete");
13 </script>