3 <body style=
"background-color: #fee; font-family: 'courier new', monospace; font-size: 13px; word-wrap: break-word;" contenteditable
>
4 <p id=
"description">This test ensures WebKit does not skip paragraphs when determining the insertion position for paste.
<br>
5 You should see
"hello world<caret> WebKit" below.
</p>
6 <div id=
"test" contenteditable
>
7 <font class=
"Apple-style-span" face=
"'courier new', monospace"><div style=
"font-family: arial;">
8 <span class=
"Apple-style-span" style=
"font-family: 'courier new', monospace;">hello
</span></div>
9 <div style=
"font-family: arial; "><span class=
"Apple-style-span" style=
"font-family: 'courier new', monospace;"> WebKit
</span></div></font>
11 <script src=
"../editing.js"></script>
12 <script src=
"../../resources/dump-as-markup.js"></script>
15 Markup
.description(document
.getElementById('description').textContent
);
17 moveSelectionForwardByLineBoundaryCommand();
18 Markup
.dump('test', 'Initial markup');
20 insertHTMLCommand('<span class="Apple-style-span" style="background-color: #fee;"> world</span>');
21 Markup
.dump('test', 'After inserting " world"');
23 for (var i
= 0; i
< 5; i
++) // Make sure we're at the very end.
24 moveSelectionForwardByLineCommand();
25 moveSelectionBackwardByLineBoundaryCommand();
28 Markup
.dump('test', 'After deleting line break before " WebKit"');