4 <link rel=stylesheet
href=
"../editingStyle.css" type=
"text/css">
5 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
9 function editingTest() {
10 moveSelectionForwardByCharacterCommand();
11 moveSelectionForwardByCharacterCommand();
12 typeCharacterCommand(' ');
17 <title>Adding a space inside whitespace:pre text collapses space
</title>
21 <p>This tests to see if inserting a space inside normal whitespace inside of a whitespace:pre element will collapse other spaces surrounding it.
</p>
22 <p>If successful, you should see 'a' followed by
10 spaces followed by 'b'.
</p>
26 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
27 <pre id=
"test" class=
"editing">a b
</pre>