13 border:
2px solid blue;
17 background-color: green;
21 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
25 function editingTest() {
26 for (i
= 0; i
< 6; i
++)
27 extendSelectionForwardByCharacterCommand();
29 moveSelectionForwardByCharacterCommand();
30 insertParagraphCommand();
32 for (i
= 0; i
< 3; i
++)
33 typeCharacterCommand();
34 insertParagraphCommand();
35 insertParagraphCommand();
36 for (i
= 0; i
< 3; i
++)
37 typeCharacterCommand();
42 <title>Editing Test
</title>
44 <body contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
46 Test inserting paragraphs and managing typing style correctly: Only
"line 1" should be bold. Other lines should be non-bold. Fix for this bug:
47 <a href=
"rdar://problem/3944492"><rdar://problem/
3944492></a> after pressing return twice, text is bold when it shouldn't be
48 <div style=
"height: 12px"></div>
50 <p id=
"test">line
1</p>