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
< 3; i
++)
27 moveSelectionForwardByCharacterCommand();
28 insertParagraphCommand();
29 typeCharacterCommand();
34 <title>Editing Test
</title>
36 <body contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
38 Test inserting paragraphs: should see
"foo" in a blue box, then a blue box with with two lines in it: First line a bold
"x"; second line a non-bold
"bar". Fix for this bug:
39 <a href=
"rdar://problem/3924579"><rdar://problem/
3927554></a> Style info applied to remainder of document after a newline is entered
41 <div style=
"height: 12px"></div>
43 <p id=
"test"><b>foo
</b><br>bar
</p>