| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <script src="../../resources/ahem.js"></script> |
| 3 <body> | 4 <body> |
| 4 <p>To manually run the test, put the cursor at the beginning of the next paragra
ph, | 5 <p>To manually run the test, put the cursor at the beginning of the next paragra
ph, |
| 5 and then press the down arrow key. The caret should go to the next line, | 6 and then press the down arrow key. The caret should go to the next line, |
| 6 not the beginning of the dashed section.</p> | 7 not the beginning of the dashed section.</p> |
| 7 | 8 |
| 8 <div id="result" style="font-family: Ahem; font-size: 16px; color: #fcc; width:4
00px;"> | 9 <div id="result" style="font-family: Ahem; font-size: 16px; color: #fcc; width:4
00px;"> |
| 9 aaaa aaaa | 10 aaaa aaaa |
| 10 <span style="border-style: dashed; background-color: #000"> | 11 <span style="border-style: dashed; background-color: #000"> |
| 11 aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa | 12 aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa |
| 12 aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa</span> | 13 aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa</span> |
| 13 </div> | 14 </div> |
| 14 <script src="../../resources/dump-as-markup.js"></script> | 15 <script src="../../resources/dump-as-markup.js"></script> |
| 15 <script> | 16 <script> |
| 16 document.designMode = 'on'; | 17 document.designMode = 'on'; |
| 17 | 18 |
| 18 var selection = window.getSelection(); | 19 var selection = window.getSelection(); |
| 19 var result = document.getElementById('result'); | 20 var result = document.getElementById('result'); |
| 20 selection.collapse(result, 0); | 21 selection.collapse(result, 0); |
| 21 selection.modify('move', 'forward', 'line'); | 22 selection.modify('move', 'forward', 'line'); |
| 22 | 23 |
| 23 Markup.dump('result'); | 24 Markup.dump('result'); |
| 24 </script> | 25 </script> |
| 25 </body> | 26 </body> |
| 26 </html> | 27 </html> |
| OLD | NEW |