Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / insert-list-infinite-loop.html
blob2cecd763f32550830c7759337a8848957d12e36b
1 <!DOCTYPE html>
2 <html>
3 <body contenteditable="true">
4 <span>XX</span>
5 <table style="background: red;">
6 <tr><td><span>AA</span></td></tr>
7 </table>
8 YY
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 var range = document.createRange();
14 var selection = window.getSelection();
15 var elementList = document.getElementsByTagName('span');
16 range.setStart(elementList[0], 0);
17 range.setEnd(elementList[1], 1);
18 selection.addRange(range);
19 document.execCommand('InsertUnorderedList');
20 document.body.textContent = 'PASS if Blink reaches here.';
21 </script>
22 </body>
23 </html>