11 border:
2px solid blue;
16 .scenario { margin-bottom:
16px;}
17 .scenario:first-line { font-weight: bold; margin-bottom:
16px;}
18 .expected-results:first-line { font-weight: bold }
20 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
21 <script src=
"../../resources/dump-as-markup.js"></script>
24 function editingTest() {
25 for (i
= 0; i
< 3; i
++)
26 extendSelectionForwardByLineCommand();
28 Markup
.description(document
.querySelector('.explanation').innerText
);
30 Markup
.dump('root', 'Before cut');
32 Markup
.dump('root', 'After cut');
35 Markup
.dump('root', 'After paste');
40 <title>Editing Test
</title>
44 <div class=
"explanation">
45 <div class=
"scenario">
48 Bug fix for
<a href=
"rdar://problem/4035648"><rdar://problem/
4035648></a> REGRESSION (Mail): line feed in source HTML file causes bad copy/paste behavior
50 In particular, the line feed that appears between br and b elements should not reorder the content in createMarkup.
52 <div class=
"expected-results">
55 Should see the text self-documenting itself correctly:
63 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
64 <div id=
"test" class=
"editing">