[whatwg] <link rel=icon sizes=?> What if sizes is incorrect?
Aaron Boodman
aa at google.com
Thu May 8 19:34:21 PDT 2008
On Thu, May 8, 2008 at 7:29 PM, Ernest Cline <ernestcline at mindspring.com> wrote:
> No matter what the spec says, I think we can all agree that once this enters the real world there will be times when the icon size given is wrong. So what to do? At a minimum, I think the behavior called for when dealing with the type attribute is called for:
> "User agents must not consider the type attribute authoritative — upon fetching the resource, user agents must not use metadata included in the link to the resource to determine its type."
>
> However once a mismatch is discovered, does that mean that the icon that has been retrieved should be scaled as if it were an <img>, or should the icon be discarded and the next icon which matches the available parameters be used instead?
I agree that mismatches will occur in the real world. I think it can
be left to the UA as to what to do in that case, as it is a developer
mistake.
In the case of Gears, what we would do is use the (possibly incorrect)
icon the developer specified for the instant preview, and then use the
correct sizes determined from actually downloading the images when we
create the shortcut.
- a
More information about the whatwg
mailing list