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 12679 - In http://krijnhoetmer.nl/irc-logs/whatwg/20080707#l-26 you argued that most HTML attributes don't use hyphen, so for consistency cross-origin should be crossorigin
Summary: In http://krijnhoetmer.nl/irc-logs/whatwg/20080707#l-26 you argued that most ...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 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-05-18 09:06 UTC by contributor
Modified: 2011-08-04 05:12 UTC (History)
9 users (show)

See Also:


Attachments

Description contributor 2011-05-18 09:06:56 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/complete/embedded-content-1.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#attr-img-cross-origin

Comment:
In http://krijnhoetmer.nl/irc-logs/whatwg/20080707#l-26 you argued that most
HTML attributes don't use hyphen, so for consistency cross-origin should be
crossorigin

Posted from: 88.131.66.80 by simonp@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.5.8; U; en) Presto/2.8.131 Version/11.10
Comment 1 Ian 'Hixie' Hickson 2011-05-23 20:59:31 UTC
With cross-origin, there are three attributes with hyphens, if we ignore data-*. If we include data-*, there's an infinite number of attributes with hyphens, so most of them do have them...

I think this is a bit bigger of a problem for element names than attribute names. But I'll change it if I'm alone in thinking it reads better with the hyphen... what do people think?

   <img src="..." alt="..." cross-origin="..." title="..." class="...">

   <img src="..." alt="..." crossorigin="..." title="..." class="...">
Comment 2 Tab Atkins Jr. 2011-05-23 21:19:26 UTC
The two old attributes that use hyphens (http-equiv and accept-charset) are a weird legacy.  The two classes of new attributes that use hyphens (data-* and aria-*) represent an open class of attributes, and the hyphen serves a useful purpose of representing that the preceding string is a common prefix (already established by CSS as a common pattern).  Many other attributes that could potentially read better with hyphens, like formnovalidate (form-no-validate?) are hyphenless.

For consistency, let's drop the hyphen.  I don't want to have to remember any more exceptions to the no-hyphen rule than I'm already forced to.
Comment 3 Ian 'Hixie' Hickson 2011-05-23 21:29:10 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: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 4 contributor 2011-05-23 21:29:27 UTC
Checked in as WHATWG revision r6147.
Check-in comment: Change cross-origin='' to crossorigin='' since people don't seem to like hyphens. Poor hyphens.
http://html5.org/tools/web-apps-tracker?from=6146&to=6147
Comment 5 Michael[tm] Smith 2011-08-04 05:12:33 UTC
mass-move component to LC1