-
Notifications
You must be signed in to change notification settings - Fork 413
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
Determine IE10 Behavior #3
Comments
I tested IE10 with the following code snippet: <!DOCTYPE html>
<html>
<head>
<link rel="icon" sizes="16x16" href="/1.ico">
<!--[if IE]><link rel="shortcut icon" href="/2.ico"><![endif]-->
</head>
</html> It did not load either of the two favicons, and instead loaded the root favicon located at After uncommenting the Maybe specifying the IE version, and then the standard version, would be the most cross-browser compatible? <link rel="shortcut icon" href="/path/to/favicon.ico">
<link rel="icon" sizes="16x16 32x32" href="/path/to/favicon.ico"> |
You can do IE testing here: http://modern.ie |
@xr09 I tried this: <link rel="icon" href="/1.ico" sizes="16x16 32x32" type="image/vnd.microsoft.icon"> and it did not work. I think the solution on the page you linked is working because of the IE10 behavior of automatically looking for |
Just don’t bother using any HTML and place the favicon in |
Thank you everyone for this discussion, and @mathiasbynens thank you for the link to your incredible writeup. This is all really helpful. I know the no-HTML root favicon.ico solution is simple and works everywhere, but explicitly specifying HTML has these advantages:
My questions:
|
Why not simply have the following?
This is permitted in the spec as I discuss in #2. |
About @shawnz's suggestion, please see #2 and comment there if you have more info. Some info about IE behavior, from @ericlaw on Twitter (former IE program manager/MVP):
I'm still looking for feedback about my questions above, by the way. |
FWIW, that was mentioned in my post too:
The way I see it, the options for favicons are:
Given the pros/cons for each option, I don’t see why anyone would choose for option 2. |
@mathiasbynens I now agree with you about option 1 and am hoping to merge in your pull request about it. But I'd still like to know the answer to explicit cross-brower HTML markup (option 2) for the sake of completeness -- if only to address it in the FAQ for people who can't put it into So if anyone makes further progress on this, keep me posted! |
Right now there's a TODO in the cheatsheet to determine IE10 behavior. I was thinking we could use this enhancement as a place to post notes.
The text was updated successfully, but these errors were encountered: