Not working at IE8 #202

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

Comments

Projects
None yet
7 participants
@calderon

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

This comment has been minimized.

Show comment
Hide comment
@scottjehl

scottjehl Jun 12, 2013

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.

Owner

scottjehl commented Jun 12, 2013

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

This comment has been minimized.

Show comment
Hide comment
@calderon

calderon Jun 12, 2013

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...

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...

@cartierjf

This comment has been minimized.

Show comment
Hide comment
@cartierjf

cartierjf Jul 18, 2013

+1
Have the exact same error.

+1
Have the exact same error.

@donaldpcook

This comment has been minimized.

Show comment
Hide comment
@donaldpcook

donaldpcook Aug 9, 2013

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

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

@cartierjf

This comment has been minimized.

Show comment
Hide comment
@cartierjf

cartierjf Aug 15, 2013

Did not know that. Thanks.

Did not know that. Thanks.

@hakimCZE

This comment has been minimized.

Show comment
Hide comment
@hakimCZE

hakimCZE Nov 15, 2013

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

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

@scottjehl scottjehl closed this in 0c87b23 Nov 15, 2013

@Wilto

This comment has been minimized.

Show comment
Hide comment
@Wilto

Wilto Nov 15, 2013

Collaborator

@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.

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.

@hakimCZE

This comment has been minimized.

Show comment
Hide comment
@hakimCZE

hakimCZE Nov 15, 2013

@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

@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

This comment has been minimized.

Show comment
Hide comment
@scottjehl

scottjehl Nov 15, 2013

Owner

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

Owner

scottjehl commented Nov 15, 2013

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

@khromov

This comment has been minimized.

Show comment
Hide comment
@khromov

khromov 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

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