blob: 2224cd81d9741220fa85aed235823c2b303e7a0d [file] [log] [blame]
<body>
<p>This tests for a bug where inserting at the end of a link would place content in the wrong paragraph.</p>
<div contenteditable="true"><a id="link" href="#">Everything&nbsp;<br></a></div>
<script>
var sel = window.getSelection();
var link = document.getElementById("link");
sel.collapse(link, link.childNodes.length);
document.execCommand("InsertText", false, "in this editable region should be in the same paragraph.");
</script>
</body>