1 <p>This tests insertion before/after links that are also display:block. Insertion before/after display:block links should go inside the links so that text is inserted in the expected paragraph.
</p>
2 <div id=
"div" contenteditable=
"true"><a href=
"http://www.google.com/" style=
"display:block;">all be
</a></div>
5 var sel
= window
.getSelection();
6 var div
= document
.getElementById("div");
9 document
.execCommand("InsertText", false, "This sentence should ");
11 sel
.collapse(div
, div
.childNodes
.length
);
13 document
.execCommand("InsertText", false, " on one line.");