6 testRunner
.dumpEditingCallbacks();
14 border:
1px dotted blue;
22 var selection
= window
.getSelection();
24 var divs
= document
.getElementsByTagName("div");
25 for (var i
= 0; divs
[i
]; i
++) {
26 selection
.collapse(divs
[i
], 0);
27 document
.execCommand("InsertText", false, 'c');
33 <p>This tests the ability to start editing in blocks that are visible, but have little or no content. Each of the divs below should be able to accept a caret.
</p>
35 <p>This div contains some text.
</p>
36 <div contentEditable=
"true">
40 <p>This div is completely empty.
</p>
41 <div contentEditable=
"true"></div>
43 <p>This div contains some collapsable whitespace (a '\n').
</p>
44 <div contentEditable=
"true">
47 <p>This div contains a self-closing p tag.
</p>
48 <div contentEditable=
"true"><p /></div>
50 <p>This div contains a self-closing p tag and some collapsable whitespace (two '\n's before and after the self closing p.
</p>
51 <div contentEditable=
"true">