1069716-1.html (544B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf8"> 5 <script> 6 function go() { 7 var styleNode = document.createElement("style"); 8 styleNode.textContent = 9 "@counter-style triangle { symbols: b; } \n" + 10 "@counter-style disc { system: extends triangle; } \n"; 11 12 // NOTE: The bug goes away if you remove this trivial rule: 13 styleNode.textContent += "ul {}"; 14 15 document.getElementsByTagName("head")[0].appendChild(styleNode); 16 } 17 </script> 18 </head> 19 <body onload="go()"> 20 <ul><li><---That should be a 'b' character.