6 border-left:
2px solid blue;
14 document
.getElementById('console').appendChild(document
.createTextNode(msg
+ '\n'));
19 var s
= window
.getSelection();
20 s
.collapse(document
.getElementById('qt'), 0);
21 document
.execCommand("InsertNewlineInQuotedContent");
22 document
.execCommand("InsertText", true, "unquoted");
23 s
.collapse(document
.getElementById('qt2'), 0);
24 document
.execCommand("InsertNewlineInQuotedContent");
25 document
.execCommand("InsertText", true, "unquoted");
29 <body onload=
"test()">
30 <p>This tests that inserting a newline at the beginning of quoted content doesn't add an extra quoted line. The test has passed if there are no empty lines (quoted or unquoted) in the box below.
</p>
31 <div contenteditable=
"true">
32 <blockquote type=
"cite"><div id=
"qt">quote level one
</div></blockquote>
33 <blockquote type=
"cite"><div>quote level one
</div><div><blockquote type=
"cite"><div id=
"qt2">quote level two
</div></blockquote></div></blockquote>
35 <pre id=
"console"></pre>