Skip to content

Favicon link breaks media queries in IE8 #13

Closed
nievo opened this Issue Apr 11, 2011 · 0 comments

2 participants

@nievo
nievo commented Apr 11, 2011

Adding a favicon link tag to the html head breaks media queries in IE8. E.g.

I tested it by downloading your demo page and associated files and added a favicon link. It may also affect other versions of IE, I haven't had a chance to test them yet.

Looking at your ripCSS function it appears you are treating all link tags with an href as stylesheets.

When you loop over the stylesheets and test to see if the link has an href (line 43) you should also test to see if it is a stylesheet. e.g.
if( !!href && !parsedSheets[ href ] && (!rel || rel.indexOf("stylesheet") != -1) && (!type || type == 'text/css')){

@scottjehl scottjehl closed this in b710d21 Apr 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.