blob: b9f8371831eb4d237166afb2b7acafb456c2a938 [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.setPosition(link, link.childNodes.length);
document.execCommand("InsertText", false, "in this editable region should be in the same paragraph.");
</script>
</body>