Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working at IE8 #202

Closed
calderon opened this issue Jun 12, 2013 · 10 comments
Closed

Not working at IE8 #202

calderon opened this issue Jun 12, 2013 · 10 comments

Comments

@calderon
Copy link

Hi! I just added respond.js to my new project and I can't achieve to make it work.

It seems a JS error:

Invalid procedure call or argument
respond.js Line: 284
Code: 0 Char: 13
Uri: http://192.168.1.103:3000/assets/respond.js?body=1

It seems to be theses lines:

          if ( ss.styleSheet ){ 
            ss.styleSheet.cssText = css;
          }
          else {
            ss.appendChild( doc.createTextNode( css ) );
          }

But I really can't understand why. If I open the IE8 responsive test page, it works like a charm.

Any idea?

@scottjehl
Copy link
Owner

Can you post a link?

On Jun 11, 2013, at 7:42 PM, Daniel Calderón notifications@github.com wrote:

Hi! I just added respond.js to my new project and I can't achieve to make it work.

It seems a JS error:

Invalid procedure call or argument
respond.js Line: 284
Code: 0 Char: 13
Uri: http://192.168.1.103:3000/assets/respond.js?body=1

It seems to be theses lines:

      if ( ss.styleSheet ){ 
        ss.styleSheet.cssText = css;
      }
      else {
        ss.appendChild( doc.createTextNode( css ) );
      }

But I really can't understand why. If I open the IE8 responsive test page, it works like a charm.

Any idea?

Reply to this email directly or view it on GitHub.

@calderon
Copy link
Author

Sorry, I can't :( it's still under development. I wonder if could be something weird (a character or similar) into the css var? The CSS is generated with some comments (the path to the file where it's the style). Could be that? I don't know, just guessing...

@0xjohnnycagewins
Copy link

+1
Have the exact same error.

@donaldpcook
Copy link

This is the error you get if you have > 32 stylesheets in IE8. Concatenate your CSS and it should work.

@0xjohnnycagewins
Copy link

Did not know that. Thanks.

@PavelHasala
Copy link

Probably should be written somewhere. I realy cant have concated stylesheets on devel enviroment, neither when debuging something

@Wilto
Copy link
Collaborator

Wilto commented Nov 15, 2013

@hakimCZE: That’s not an issue with Respond—IE8 just discards any stylesheets beyond the thirty second one. You’ll see the same thing without Respond in place.

@PavelHasala
Copy link

@Wilto yeah, i know, thats what I told other developers when I've implemented response.js. But it starts to be a time consuming issue, when you have much more stylesheets, or with stylesheets that are linked for a specific section, so they are always last

@scottjehl
Copy link
Owner

Even though it's unrelated to this script, there's a note in the readme now. Thanks!

@khromov
Copy link

khromov commented May 26, 2014

Does anyone know if this also happens when a stylesheet has more than 4095 rules? I am getting this error on a page but there are only about 10 stylesheets on the page. There is however one massive stylesheet which probably has in the vicinity of 4k rules.

http://blogs.msdn.com/b/ieinternals/archive/2011/05/14/internet-explorer-stylesheet-rule-selector-import-sheet-limit-maximum.aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants