10 border:
2px solid blue;
15 .scenario { margin-bottom:
16px;}
16 .scenario:first-line { font-weight: bold; margin-bottom:
16px;}
17 .expected-results:first-line { font-weight: bold }
19 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
23 function editingTest() {
24 moveSelectionForwardByLineCommand();
25 extendSelectionForwardByLineCommand();
26 extendSelectionForwardByLineCommand();
32 <title>Editing Test
</title>
36 <div class=
"explanation">
37 <div class=
"scenario">
40 Deleting when a selection starts in a blank line created by a block with a BR placeholder in it and extends to the end of the document.
42 <div class=
"expected-results">
45 Should see the two lines in the red box. First line should be
"A". Next one should be empty. Insertion point should
46 be blinking at the start of the second line.
50 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
51 <div id=
"test" class=
"editing">
52 <p style=
"margin-top: 0; margin-bottom: 0">A
</p>
53 <p style=
"margin-top: 0; margin-bottom: 0"><BR class=
"khtml-block-placeholder"></p>
54 <p style=
"margin-top: 0; margin-bottom: 0">A
</p>
55 <p style=
"margin-top: 0; margin-bottom: 0"><BR class=
"khtml-block-placeholder"></p>