786108-2.html 929 B

123456789101112131415161718192021222324
  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. This version is designed for slow / memory constrained
  9. // platforms.
  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. for (var i = 0 ; i < 2500 ; i++)
  14. img.push(encodeURIComponent('<circle cx="0" cy="0" r="1" style="xxx-invalid-property: 0;"/>'));
  15. img.push(encodeURIComponent('</svg>'));
  16. img.push('">');
  17. document.getElementsByTagName('body')[0].innerHTML = img.join('');
  18. </script>
  19. </html>