Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 5134759.html
blobebc82b606a525e09d80146f58a176de0e3bdde5c
1 <p>This tests for a hang when pasting underlined content at the end of a paragraph. You should see 'Hello <u>World!</u>' below.</p>
3 <div id="div" contenteditable="true"><div>Hello&nbsp;</div></div>
5 <script>
6 var sel = window.getSelection();
7 var div = document.getElementById("div");
8 sel.collapse(div, div.childNodes.length);
9 document.execCommand("InsertHTML", false, "<span style='text-decoration: underline;'><div>World!</div></span>");
10 </script>