W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2008

[whatwg] <link rel=icon sizes=?> What if sizes is incorrect?

From: Aaron Boodman <aa@google.com>
Date: Thu, 8 May 2008 19:34:21 -0700
Message-ID: <278fd46c0805081934q4227a39dn922101959dfffe20@mail.gmail.com>
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
Received on Thursday, 8 May 2008 19:34:21 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:02 UTC