Null dereference loading Blink layout test editing/execCommand/delete-hidden-crash...
[WebKit-https.git] / LayoutTests / editing / execCommand / delete-hidden-crash.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../editing.js"></script>
5
6 <script>
7 if (window.testRunner)
8     testRunner.dumpAsText();
9
10 function editingTest() {
11     document.execCommand('SelectAll')
12     span = document.getElementsByTagName('span')[0];
13     span.contentEditable = 'true';
14     span.textContent = 'bar';
15     document.execCommand('InsertText', false, '1');
16     document.body.textContent = "PASS. WebKit didn't crash.";
17 };
18 </script>
19
20 <style>
21 * { visibility:visible; }
22 .inline { display:inline; }
23 * :only-child { visibility:hidden; }
24 </style>
25 </head>
26 <body onload=editingTest()>
27 <table>
28 <tr><td><span><table></table><span></span></span></td></tr>
29 <tr><td><td class="inline">foo</td></tr>
30 </table>
31 </body>
32 </html>