786108-1.html (857B)
1 <html> 2 <head></head> 3 <body></body> 4 <script type="text/javascript"> 5 // Detect severe performance and memory issues when large amounts of errors 6 // are reported from CSS embedded in a file with a long data URI. Addressed 7 // by 786108; should finish quickly with that patch and run for a very long 8 // time otherwise. 9 10 var img = new Array; 11 img.push('<img src="data:image/svg+xml,'); 12 img.push(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300px" height="300px">')); 13 14 for (var i = 0 ; i < 10000 ; i++) 15 img.push(encodeURIComponent('<circle cx="0" cy="0" r="1" style="xxx-invalid-property: 0;"/>')); 16 17 img.push(encodeURIComponent('</svg>')); 18 img.push('">'); 19 20 document.getElementsByTagName('body')[0].innerHTML = img.join(''); 21 </script> 22 </html>