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 7051 - add new extended attribute to IDLs with DOM attributes that reflect content attributes
Summary: add new extended attribute to IDLs with DOM attributes that reflect content a...
Status: CLOSED WONTFIX
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: https://lists.webkit.org/pipermail/we...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-23 10:14 UTC by Michael[tm] Smith
Modified: 2010-10-04 13:56 UTC (History)
5 users (show)

See Also:


Attachments

Description Michael[tm] Smith 2009-06-23 10:14:05 UTC
There are currently several dozen instances of requirements stated in the spec prose in the form "The foo DOM attribute must reflect the foo content attribute."

For their internal IDLs, the WebKit development team is adding a "[Reflect]" annotation (more precisely, what WebIDL calls an "extended attribute") to each instance of declaration of a DOM attribute for which the HTML spec requires reflection of a content attribute. For details, see this message:

  https://lists.webkit.org/pipermail/webkit-dev/2009-June/008457.html

It might be worthwhile to consider using such an extended attribute in those corresponding IDLs within the HTML5 spec itself. The WebIDL spec makes it clear that use of such not-in-the-WebIDL-spec-itself extended attributes is OK:

  http://dev.w3.org/2006/webapi/WebIDL/#extensibility

[[
Extensions to language binding requirements can be specified using extended attributes that do not conflict with those defined in this document.
]]

So the HTML5 spec could internally define (e.g., somewhere in the "Reflecting content attributes in DOM attributes" section) what it means by its use of the [Reflect] extended attribute (or whatever other name might be used instead).

If it's added, we can just try to let other groups (e.g., SVG WG) know about it, so that if they end up finding similar utility for such an attribute, we can have consistent naming across different specs -- or I suppose if we really wanted to, we could publish a short Note for it. If we did that, I guess it would probably be most appropriate to have the WebApps WG publish that.
Comment 1 Anne 2009-06-23 10:21:04 UTC
Maybe this should be in Web DOM Core instead?
Comment 2 Simon Pieters 2009-06-23 11:46:49 UTC
If it's just HTML5 that's using this, then what we have is fine.

If there are multiple DOM specs that want to use this (say HTML5 and SVG 2.0), then I think it makes sense to put this in Web DOM Core. I've added a note about this in my draft.

I don't think it's appropriate to put this in a Note since Notes are non-normative.
Comment 3 Ian 'Hixie' Hickson 2009-06-26 09:21:10 UTC
I've considered this kind of thing in the past, but the main reason I haven't done it is that I don't want to have features that are defined exclusively by the IDL blocks, because it makes the spec harder to read (IMHO).

How strongly do you feel about this?
Comment 4 Michael[tm] Smith 2009-06-26 09:32:14 UTC
(In reply to comment #3)
> I've considered this kind of thing in the past, but the main reason I haven't
> done it is that I don't want to have features that are defined exclusively by
> the IDL blocks, because it makes the spec harder to read (IMHO).
> 
> How strongly do you feel about this?

I think that for the intended audience in this particular case, it actually makes the spec easier to read, not harder. But I don't feel strongly about it. I just put it forward as something to consider. If you reckon the spec text around this is fine as is and would not benefit significantly from the proposed change, it's fine by me for this bug to just changed to resolution=wontfix.
Comment 5 Ian 'Hixie' Hickson 2009-06-26 09:37:36 UTC
Ok. I'm going to WONTFIX this for now, since it would be a lot of (likely quite error-prone) work to make this change at this point anyway. I'll consider something like this in the future, though. Thanks!
Comment 6 Maciej Stachowiak 2010-03-14 14:48:19 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.