Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / 4840662.html
blob0d87f526622f8a136b7b02eb88c7c535cb01ad57
1 <p>This tests insertion before/after links that are also display:block. Insertion before/after display:block links should go inside the links so that text is inserted in the expected paragraph.</p>
2 <div id="div" contenteditable="true"><a href="http://www.google.com/" style="display:block;">all be</a></div>
4 <script>
5 var sel = window.getSelection();
6 var div = document.getElementById("div");
7 sel.collapse(div, 0);
9 document.execCommand("InsertText", false, "This sentence should ");
11 sel.collapse(div, div.childNodes.length);
13 document.execCommand("InsertText", false, " on one line.");
14 </script>