1 <span>This test passes if the caret is at the start of the second line.
</span>
3 <div id=
"edit" contentEditable=
"true" style=
"width: 350px; height: 100px; border: 1px solid blue;">a
<span style=color:blue;
">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</span></div>
5 var edit = document.getElementById("edit
");
6 window.getSelection().collapse(edit.firstChild, 2);