Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / inserting / 5156401-2.html
1 <body>
2 <p>This tests for a bug where inserting at the end of a link would place content in the wrong paragraph.</p>
3 <div contenteditable="true"><a id="link" href="#">Everything&nbsp;<br></a></div>
4                
5 <script>
6 var sel = window.getSelection();
7 var link = document.getElementById("link");
8 sel.collapse(link, link.childNodes.length);
9 document.execCommand("InsertText", false, "in this editable region should be in the same paragraph.");
10 </script>
11 </body>