OLD | NEW |
1 <style> | 1 <style> |
2 h6 { | 2 h6 { |
3 text-shadow: 0.85714in -110pc -0.216688mm; | 3 text-shadow: 0.85714in -110pc -0.216688mm; |
4 } | 4 } |
5 p + h6 { | 5 p + h6 { |
6 left: 180cm; | 6 left: 180cm; |
7 } | 7 } |
8 </style> | 8 </style> |
9 <script> | 9 <script> |
10 function main() { | 10 function main() { |
11 var styletag = document.getElementsByTagName("style")[0]; | 11 var styletag = document.getElementsByTagName("style")[0]; |
12 styletag.type = "p"; | 12 styletag.type = "p"; |
13 styletag.innerHTML = "t"; | 13 styletag.innerHTML = "t"; |
14 var second_h6 = document.getElementsByTagName("h6")[1]; | 14 var second_h6 = document.getElementsByTagName("h6")[1]; |
15 second_h6.align = 'a'; | 15 second_h6.align = 'a'; |
16 document.styleSheets[0].removeRule(0); | 16 document.styleSheets[0].removeRule(0); |
17 | 17 |
18 if (window.testRunner) | 18 if (window.testRunner) |
19 testRunner.dumpAsText(); | 19 testRunner.dumpAsText(); |
20 } | 20 } |
21 </script> | 21 </script> |
22 <body onload=main()><h6><h6> | 22 <body onload=main()><h6><h6> |
23 Changing a documents stylesheet's innerHTML should not crash. | 23 Changing a documents stylesheet's innerHTML should not crash. |
OLD | NEW |