tommoor / tinycon

A small library for manipulating the favicon, in particular adding alert bubbles and changing images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] MIME HTML5 link rel="shortcut icon"

opened this issue · comments

image/x-icon is not fount match:

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="/apple_icon.png"/>

doesn't find icon

Work fine:

<link rel="icon" type="image/png" href="/apple_icon.png">

Pls fixed "shortcut icon" and "apple-touch-icon"

http://en.wikipedia.org/wiki/Favicon

if ($.browser.msie) // is ico
{
  // link[rel="icon"]
} else { // png || gif
  // link[rel="shortcut icon"]
  // iOS = http://goo.gl/AbDnJ
  // link[rel="apple-touch-icon"] or link[rel="apple-touch-icon-precomposed"] + find('sizes') = Width[x]Height
}

Hey, this should have been resolved in a9274f7 - thanks for the report!