Not possible to remove the 'li' element inside the table cell
[WebKit-https.git] / LayoutTests / editing / deleting / delete-list-items-in-table-cell-3.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4     <div id="container" contenteditable="true"><table border="1"><tr><td><ol><li id="li"><br></li></ol></td></tr></table></div>
5     <script src="../../resources/dump-as-markup.js"></script>
6     <script>
7         Markup.description('When deleting the last ordered list item in a table cell we must delete the whole ordered list:');
8
9         getSelection().collapse(document.getElementById("li"), 0);
10         Markup.dump('container', 'Before');
11
12         document.execCommand("Delete");
13         Markup.dump('container', 'After');
14     </script>
15 </body>
16 </html>