637242.xhtml (522B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <style id="style">p { color: red; }</style> 4 <script> 5 <![CDATA[ 6 7 function boom() 8 { 9 var styleText = "p { color: green; }"; 10 11 // Make 2^17 rules 12 for (var i = 0; i < 17; ++i) { 13 styleText += styleText; 14 } 15 16 document.getElementById("style").firstChild.data = styleText; 17 18 document.body.appendChild(document.createElementNS("http://www.w3.org/1998/Math/MathML", "mrow")); 19 } 20 21 ]]> 22 </script> 23 </head> 24 25 <body onload="boom();"><p>This should be green</p></body> 26 27 </html>