davidguttman / cssify

Simple middleware for Browserify to add css styles to the browser.
122 stars 19 forks source link

IE8: Not enough storage is available to complete this operation #10

Closed AshKyd closed 10 years ago

AshKyd commented 10 years ago

Related to #9, IE8 throws the error "Not enough storage is available to complete this operation" while attempting to create a stylesheet element using doc.createStyleSheet(css).

I've done some debugging and doc.createStyleSheet().cssText = css is the only syntax I can get to work. I can't actually get the other method to work even in the most basic of cases, so unless there's something going on that I don't understand I suspect the current version is the wrong syntax which throws errors when the stylesheet is large enough.