code_junkie

What does the error “htmlfile: invalid argument” mean? I'm getting this in excanvas.js

Nov 11th, 2011
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title></title>
  4. <script>
  5. for(var i=0;i<32;i++) {
  6. document.createStyleSheet();
  7. }
  8. </script>
  9. </head>
  10. <body>
  11. </body>
  12. </html>
  13.  
  14. var ss = null;
  15. var cssText = 'canvas{display:inline-block;overflow:hidden;' +
  16. // default size is 300x150 in Gecko and Opera
  17. 'text-align:left;width:300px;height:150px}';
  18. try{
  19. ss = doc.createStyleSheet();
  20. ss.owningElement.id = 'ex_canvas_';
  21. ss.cssText = cssText;
  22. } catch(e) {
  23. ss = document.styleSheets[document.styleSheets.length - 1];
  24. ss.cssText += "rn" + cssText;
  25. }
Add Comment
Please, Sign In to add comment