OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../../resources/dump-as-markup.js"></script> | 4 <script src="../../resources/dump-as-markup.js"></script> |
5 <div contenteditable="true"><ul><li>One<br></li><li>Two<br></li><li>Three<br></l
i></ul></div> | 5 <div contenteditable="true"><ul><li>One<br></li><li>Two<br></li><li>Three<br></l
i></ul></div> |
6 <script> | 6 <script> |
7 | 7 |
8 Markup.description('This tests switching the list type of multiple list items at
once. WebKit should not crash.'); | 8 Markup.description('This tests switching the list type of multiple list items at
once. WebKit should not crash.'); |
9 | 9 |
10 var div = document.getElementsByTagName('div')[0]; | 10 var div = document.getElementsByTagName('div')[0]; |
11 window.getSelection().selectAllChildren(div); | 11 window.getSelection().selectAllChildren(div); |
12 document.execCommand('InsertOrderedList', false, null); | 12 document.execCommand('InsertOrderedList', false, null); |
13 | 13 |
14 Markup.dump(div, 'One, Two, and Three should all be in a single ol, each followe
d by a single br.'); | 14 Markup.dump(div, 'One, Two, and Three should all be in a single ol, each followe
d by a single br.'); |
15 | 15 |
16 </script> | 16 </script> |
17 </body> | 17 </body> |
18 </html> | 18 </html> |
OLD | NEW |