12 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
16 function moveNSpacesAndType(n
) {
17 for (i
= 0; i
< n
; i
++) {
18 moveSelectionForwardByCharacterCommand();
20 for (i
= 0; i
< 3; i
++) {
21 typeCharacterCommand();
25 function editingTest() {
26 moveNSpacesAndType(4);
27 insertLineBreakCommand();
28 moveNSpacesAndType(4);
29 insertLineBreakCommand();
30 insertLineBreakCommand();
31 moveNSpacesAndType(4);
36 <title>Editing Test
</title>
39 <div contenteditable
id=
"root" class=
"editing">
40 <span id=
"test">Foo
<i> bar
</i>