4 <link rel=
"stylesheet" href=
"../editingStyle.css">
5 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
9 function editingTest() {
10 moveSelectionForwardByLineCommand();
11 moveSelectionForwardByLineCommand();
12 moveSelectionForwardByLineCommand();
13 moveSelectionForwardByLineCommand();
14 typeCharacterCommand();
19 <title>Editing Test
</title>
23 <p>This tests the visual position at the end of an editable block.
</p>
24 <p>When the document ended with a
<br
>, there were visual positions at both [br,
0] and [br,
1]. This would produce inconsistent behavior when editing at the end of a document.
</p>
26 <div contenteditable
id=
"test" class=
"editing">
27 <div>paragraph one
</div>
28 <div>paragraph two
</div>
31 <script>runEditingTest();</script>