Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / temporary-span-crash.html
blobb0c1df6ba2eb2448cb730db20b0d3f5207f8fad3
1 <style>
2 span { display: none }
3 </style>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7 </script>
8 <body contenteditable>
9 <p>Editing code creates temporary SPANs in some situations. Check we don't crash if we have style span { display: none }
10 <p>
11 <b id=b>select me fully </b><i id=i>select me partially ----------</i>
12 <script>
13 var selection = window.getSelection();
14 var b = document.getElementById('b');
15 var i = document.getElementById('i');
16 selection.setBaseAndExtent(b, 0, i.firstChild, 20);
17 document.execCommand("Delete");
18 </script>
19 </body>