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 extendSelectionForwardByLineCommand();
11 moveSelectionForwardByCharacterCommand();
12 moveSelectionBackwardByCharacterCommand();
13 extendSelectionBackwardByLineCommand();
16 pasteAndMatchStyleCommand();
22 <title>Pasting plain text loses leading/trailing whitespace
</title>
26 <p>This tests to see if trailing spaces are lost during a copy/paste
</p>
30 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
31 <div id=
"test" class=
"editing">there should be a single trailing space between the '.' and the last character in this sentence .
</div>