| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 | |
| 4 <style> | |
| 5 .editing { | |
| 6 border: 2px solid red; | |
| 7 padding: 12px; | |
| 8 font-size: 24px; | |
| 9 word-wrap: break-word; | |
| 10 -khtml-nbsp-mode: space; | |
| 11 -khtml-line-break: after-white-space; | |
| 12 } | |
| 13 </style> | |
| 14 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> | |
| 15 | |
| 16 <script> | |
| 17 | |
| 18 function editingTest() { | |
| 19 for (i = 0; i < 28; i++) | |
| 20 moveSelectionForwardByCharacterCommand(); | |
| 21 for (i = 0; i < 2; i++) | |
| 22 extendSelectionForwardByCharacterCommand(); | |
| 23 deleteCommand(); | |
| 24 } | |
| 25 | |
| 26 </script> | |
| 27 | |
| 28 <title>Editing Test</title> | |
| 29 </head> | |
| 30 <body> | |
| 31 <p>This testcase demonstrates a bug (9441). When 'as' is deleted, there should
be a space before and after the caret. Editing produces a tree that should resu
lt in two spaces, but for some reason it isn't rendered.</p> | |
| 32 <div contenteditable id="root" class="editing"> | |
| 33 <span id="test">in Liberty<i>F and seven</i> years <b> as </b>our fathers f
upon this | |
| 34 continent, a new nation, conceived in Liberty, and
dedicated to the | |
| 35 proposition that all</span> | |
| 36 </div> | |
| 37 | |
| 38 <script> | |
| 39 runEditingTest(); | |
| 40 </script> | |
| 41 | |
| 42 </body> | |
| 43 </html> | |
| OLD | NEW |