|
1 <html class="reftest-wait"> |
|
2 <head> |
|
3 |
|
4 <style id="style"> |
|
5 .ch1 { counter-increment: chicken; } |
|
6 </style> |
|
7 |
|
8 <script> |
|
9 function boom() |
|
10 { |
|
11 document.getElementsByTagName("ol")[0].setAttribute("class", "wtf"); |
|
12 document.getElementById("style").textContent = ".ch2 { counter-increment: chicken; }"; |
|
13 |
|
14 document.documentElement.removeAttribute("class"); |
|
15 } |
|
16 </script> |
|
17 </head> |
|
18 |
|
19 <body onload="setTimeout(boom, 30);"> |
|
20 |
|
21 |
|
22 <ol> |
|
23 <li class="ch1">item</li> |
|
24 <li>item |
|
25 <ol> |
|
26 <li class="ch2">item</li> |
|
27 </ol> |
|
28 </li> |
|
29 </ol> |
|
30 |
|
31 <ol class="ch2"> |
|
32 <li>item</li> |
|
33 </ol> |
|
34 |
|
35 |
|
36 </body> |
|
37 </html> |