audreyfeldroy / favicon-cheat-sheet

Obsessive cheat sheet to favicon sizes/types. Please contribute! (Note: this may be in flux as I learn new things about favicon best practices.)
MIT License
9.87k stars 412 forks source link

"shortcut icon" #2

Open shawnz opened 11 years ago

shawnz commented 11 years ago

What is the rationale for having separate "icon" and "shortcut icon" link elements? The HTML5 specification has the following to say:

For historical reasons, the icon keyword may be preceded by the keyword "shortcut". If the "shortcut" keyword is present, it must be come immediately before the icon keyword and the two keywords must be separated by only a single U+0020 SPACE character.

So, it would be valid to only have one element with a rel of "shortcut icon", and no conditional comment. IE9 and under have no trouble ignoring the "sizes" attribute, right?

audreyfeldroy commented 11 years ago

@shawnz I can't find my citation for this at the moment, but I'll dig it up when I get a chance. If I remember correctly, there was a bug in Chrome sometime around 2010 where favicons with rel="shortcut icon" would not show up.