OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 .s1::before { display: table; content: counter(section); } | 4 .s1::before { display: table; content: counter(section); } |
5 .s2::after { display: table; content: counter(section); } | 5 .s2::after { display: table; content: counter(section); } |
6 </style> | 6 </style> |
7 <script> | 7 <script> |
8 function boom() { | 8 function boom() { |
9 var s1 = document.createElement('select'); | 9 var s1 = document.createElement('select'); |
10 s1.setAttribute('class', 's1'); | 10 s1.setAttribute('class', 's1'); |
11 document.documentElement.appendChild(s1); | 11 document.documentElement.appendChild(s1); |
12 var s2 = document.createElement('select'); | 12 var s2 = document.createElement('select'); |
13 s2.setAttribute('class', 's2'); | 13 s2.setAttribute('class', 's2'); |
14 document.documentElement.appendChild(s2); | 14 document.documentElement.appendChild(s2); |
15 if (window.testRunner) | 15 if (window.testRunner) |
16 testRunner.dumpAsText(); | 16 testRunner.dumpAsText(); |
17 } | 17 } |
18 window.onload = boom; | 18 window.onload = boom; |
19 </script> | 19 </script> |
20 <head> | 20 <head> |
21 <body>PASS unless crash.</body> | 21 <body>PASS unless crash.</body> |
22 </html> | 22 </html> |
OLD | NEW |