1 <p>Caret should be hidden when no focus
</p>
4 <li>Click middle of
"edit me!" to show caret.
</li>
5 <li>Click checkbox.
</li>
6 <li>Caret should be hidden.
</li>
8 <div contenteditable=
"true">edit me!
</div>
9 <input type=
"checkbox">
11 document
.querySelector('div[contenteditable="true"]').focus();
12 if (window
.eventSender
) {
13 var checkbox
= document
.querySelector('input');
14 eventSender
.mouseMoveTo(checkbox
.offsetLeft
+ 5, checkbox
.offsetTop
+ 5);
15 eventSender
.mouseDown();
16 eventSender
.mouseUp();