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 7484 - head/@profile holds a white-space separated list of URIs
Summary: head/@profile holds a white-space separated list of URIs
Status: VERIFIED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords: NE, NoReply
Depends on:
Blocks:
 
Reported: 2009-09-03 07:56 UTC by Julian Reschke
Modified: 2010-10-04 14:31 UTC (History)
4 users (show)

See Also:


Attachments

Description Julian Reschke 2009-09-03 07:56:40 UTC
Citing <http://dev.w3.org/html5/spec/Overview.html#other-elements-attributes-and-apis>, as of 2009-09-03:

"[Supplemental]
interface HTMLHeadElement {
           attribute DOMString profile;
};

User agents should ignore the profile content attribute on head elements.

When the attribute would be used as a globally unique name, the user agent should instead always assume that all known profiles apply to all pages, and should therefore apply the conventions of all known metadata profiles to the document.

When the attribute's value would be handled as a URL and dereferenced, the user agent may resolve the attribute's value, and if that is successful, may then fetch the resulting absolute URL and apply the appropriate processing.

The profile IDL attribute of the head element must reflect the content attribute of the same name."

This makes it sound as if the attribute value is a single URI; that is not the case. The related text in HTML 4.01 is inconsistent, and this has been a known bug for eternity. The HTML WG should fix this misunderstanding.
Comment 1 Maciej Stachowiak 2009-09-03 10:18:30 UTC
HTML4's text on this is hard to follow, but it seems there is content out there using multiple URLs:

http://philip.html5.org/data/profile-values-2.txt

And it seems some processors handle it.
Comment 2 Julian Reschke 2009-09-18 20:43:05 UTC
Why was this bug closed?
Comment 3 Maciej Stachowiak 2009-09-18 20:54:53 UTC
It was closed because the spec section you cite now process profile as multiple space-separated URLs as you requested:

"When the attribute's value would be handled as a URL and dereferenced, the user agent must use the following steps:

Split on spaces the the value of the profile attribute.

Resolve each resulting token relative to the meta element.

For each token that is successfully resolved, fetch the resulting absolute URL and apply the appropriate processing."

Comment 4 Julian Reschke 2009-09-18 21:01:36 UTC
(In reply to comment #3)
> It was closed because the spec section you cite now process profile as multiple
> space-separated URLs as you requested:
> 
> "When the attribute's value would be handled as a URL and dereferenced, the
> user agent must use the following steps:
> 
> Split on spaces the the value of the profile attribute.
> 
> Resolve each resulting token relative to the meta element.
> 
> For each token that is successfully resolved, fetch the resulting absolute URL
> and apply the appropriate processing."

The spec still says "...When the attribute would be used as a globally unique name..." and "When the attribute's value would be handled as a URL...".

Why not simply state that it's a set of whitespace separated tokens/URLs?



Comment 5 Ian 'Hixie' Hickson 2009-09-22 00:04:37 UTC
> The spec still says "...When the attribute would be used as a globally unique
> name..." and "When the attribute's value would be handled as a URL...".

Fixed, thanks.

> Why not simply state that it's a set of whitespace separated tokens/URLs?

It's not anything, the attribute isn't allowed to be set.
Comment 6 contributor 2009-09-22 00:05:34 UTC
Checked in as WHATWG revision r3948.
Check-in comment: Clarify that profile='' took multiple tokens.
http://html5.org/tools/web-apps-tracker?from=3947&to=3948
Comment 7 Julian Reschke 2009-09-22 07:19:21 UTC
"When the attribute's value would be handled as a list of URLs to be dereferenced..."

Dereferencing is totally optional in HTML 4, so it's not clear why it's mentioned here.

Just say:

"When the attribute's value would be handled as a list of URLs, ..."
Comment 8 Ian 'Hixie' Hickson 2009-09-22 08:42:22 UTC
There are two cases that you have described that implementations do:

 a. Treating the URLs as magic tokens.
 b. Treating the URLs as identifying resources to apply.

Both cases are treated in the spec; the text you quoted is the text for (b).

Remarking FIXED since this now addresses your original comment. If you still disagree with the text, please file a new bug specifying what the problem with the new text is.
Comment 9 Julian Reschke 2009-09-22 08:59:53 UTC
Ack. In that case, my objection moves to the other sentence:

"When the attribute would be used as a list of globally unique names,..."

That should just say URIs, as does HTML4.
Comment 10 Ian 'Hixie' Hickson 2009-09-22 10:55:12 UTC
I don't understand the difference, but ok, done.
Comment 11 contributor 2009-09-22 10:56:22 UTC
Checked in as WHATWG revision r3966.
Check-in comment: More tweaks to the profile='' attribute.
http://html5.org/tools/web-apps-tracker?from=3965&to=3966
Comment 12 Maciej Stachowiak 2010-03-14 14:50:34 UTC
This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, 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

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.