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 <br></a></div>
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.");