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 14525 - Why does the element for the attribute <track> is named 'kind' ? It should be named 'type' instead. Also, why is 'srclang' instead of just 'lang'? Try use same name for attributes in different tags to preserve keywords to minimum, then it becomes easier t
Summary: Why does the element for the attribute <track> is named 'kind' ? It should be...
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: 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-10-20 14:26 UTC by contributor
Modified: 2011-10-22 11:24 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2011-10-20 14:26:46 UTC
Specification: http://dev.w3.org/html5/spec/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
Why does the element for the attribute <track> is named 'kind' ?

It should be named 'type' instead.

Also, why is 'srclang' instead of just 'lang'?

Try use same name for attributes in different tags to preserve keywords to
minimum, then it becomes easier to learn, remember and write code.

Posted from: 212.247.162.243
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Comment 1 Philip Jägenstedt 2011-10-20 14:40:01 UTC
The type attribute in other contexts (<script>, <source>, <style>) is used for MIME types, like video/webm and such.

The lang attribute is used to give the language of the content itself, not of an external resource.
Comment 2 Ian 'Hixie' Hickson 2011-10-20 20:14:04 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: Rejected
Change Description: no spec change
Rationale: see comment 1
Comment 3 Lucas Sa 2011-10-21 16:02:16 UTC
Philip/Ian,

I disagree with the rationale to close this bug:

"The type attribute in other contexts (<script>, <source>, <style>) is used for
MIME types, like video/webm and such."

This is not true. For <input> and <link> tags, the type attribute has the same meaning of "kind" in <track>. In <input>, it is also an enumerated attribute as in <track>. 

Unless there is another reason for different wording, I think that this is a matter of inconsistent naming in the specification.
Comment 4 Simon Pieters 2011-10-22 11:24:05 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: Rejected
Change Description: no spec change
Rationale: You're right that <input type> is not a MIME type (but <link type> is a MIME type). However, <track> will sit next to <source>, which has type="" and uses it for MIME type, and it would be confusing to have <track type> next to <source type> and they mean different things. We might even want to add type="" as a MIME type to <track> in the future.