| 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 } | |
| 10 </style> | |
| 11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> | |
| 12 | |
| 13 <script> | |
| 14 | |
| 15 function editingTest() { | |
| 16 for (i = 0; i < 159; i++) { | |
| 17 extendSelectionForwardByCharacterCommand(); | |
| 18 } | |
| 19 for (i = 0; i < 158; i++) { | |
| 20 extendSelectionBackwardByCharacterCommand(); | |
| 21 } | |
| 22 } | |
| 23 | |
| 24 </script> | |
| 25 | |
| 26 <title>Editing Test</title> | |
| 27 </head> | |
| 28 <body> | |
| 29 <div contenteditable id="root" class="editing"> | |
| 30 <span id="test"><i>F and seven</i> years <b> as </b>our fathers f upon this | |
| 31 continent, a new nation, conceived in Liberty, and
dedicated to the | |
| 32 proposition that all | |
| 33 <br>men are created equal.</span> | |
| 34 </div> | |
| 35 | |
| 36 <script> | |
| 37 runEditingTest(); | |
| 38 </script> | |
| 39 | |
| 40 </body> | |
| 41 </html> | |
| OLD | NEW |