This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13106 - When determining order of icons via tree order, tree order at what point? post-load? past onLoad()?
Summary: When determining order of icons via tree order, tree order at what point? pos...
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-30 21:07 UTC by contributor
Modified: 2011-08-08 18:58 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2011-06-30 21:07:41 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html
Multipage: http://www.whatwg.org/C#rel-icon
Complete: http://www.whatwg.org/c#rel-icon

Comment:
When determining order of icons via tree order, tree order at what point?
post-load? past onLoad()?

Posted from: 2620:0:1001:1001:72cd:60ff:fea8:58be
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30
Comment 1 Aryeh Gregor 2011-07-01 17:12:48 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Additional Information Needed
Change Description: no spec change
Rationale: At any given point in time, tree order is well-defined.  So it's just tree order at whatever time the UA makes the decision on displaying an icon.  What specific case do you think needs to be clarified in practice?  What to do if the author changes the icons around after the page has loaded?  Is this a real interop problem?  If so, what do you think would be a good solution and why?
Comment 2 Rachel Blum 2011-07-01 17:20:17 UTC
That is sufficient clarification, but means a full tree search whenever the UA requests an icon. 

At least one current major browser implementation (WebKit) collects the rel-icon links during initial tree build right now. 

Not saying either approach is right or wrong, simply asking for clarification since I am currently working on supporting rel-icon in Chromium/WebKit
Comment 3 Aryeh Gregor 2011-07-01 17:45:27 UTC
I'm inclined to say the spec should just make the icon selection entirely undefined unless we have clear reason to believe we need interop here.  Browsers won't be picking the same icons no matter what, since they might be displaying them at different sizes or such, so why do we need to try for any interop at all?  It's only a display issue, not author-visible.  Just let them pick icons according to whatever algorithm they like if they're given multiple ones.  If authors do something silly like give two entirely different icons at the same size, it's not going to hurt anything much if different browsers pick different ones, it will just be slightly confusing.

This is closely related to bug 13107.  If the decision were to make which icon to pick entirely UA-defined, that would resolve both of these bugs.
Comment 4 Michael[tm] Smith 2011-08-04 05:00:50 UTC
mass-moved component to LC1
Comment 5 Ian 'Hixie' Hickson 2011-08-06 00:31:51 UTC
I've tried to clarify this by saying that it's the tree order at the time the UA collects the list of icons.

Note though that if you're going to update the icon in realtime, which some sites depend on, you're going to have to recollect the icons each time the author changes the rel=icon links anyway. So it's not like you can really get away from it.

EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: see diff given below
Rationale: clarification is always good...
Comment 6 contributor 2011-08-06 00:32:04 UTC
Checked in as WHATWG revision r6379.
Check-in comment: Try to clarify that UAs don't have to continually be rescanning for icons and sorting each time.
http://html5.org/tools/web-apps-tracker?from=6378&to=6379
Comment 7 Rachel Blum 2011-08-08 18:58:39 UTC
Thank you for the clarification!