<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>12844</bug_id>
          
          <creation_ts>2011-06-01 14:57:33 +0000</creation_ts>
          <short_desc>Remove the label attribute from subclasses of HTMLElement</short_desc>
          <delta_ts>2011-09-14 12:57:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11ytf</keywords>
          <priority>P3</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>12845</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ms2ger">Ms2ger</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bugs</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>cam</cc>
    
    <cc>ian</cc>
    
    <cc>jan.varga</cc>
    
    <cc>jonas</cc>
    
    <cc>lwatson</cc>
    
    <cc>mike</cc>
    
    <cc>mjs</cc>
    
    <cc>mounir</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rubys</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49014</commentid>
    <comment_count>0</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2011-06-01 14:57:33 +0000</bug_when>
    <thetext>Assuming the shadowed attribute always returns the same thing as the one on HTMLElement, there&apos;s really no point in having both. (Otherwise, the spec is doubly broken.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49554</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-06-14 04:29:24 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;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: 

It doesn&apos;t always return the same thing, intentionally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49556</commentid>
    <comment_count>2</comment_count>
    <who name="Jan Varga">jan.varga</who>
    <bug_when>2011-06-14 04:50:36 +0000</bug_when>
    <thetext>What do you mean by &quot;It doesn&apos;t always return the same thing, intentionally.&quot; ?

Do you mean that there are different definitions of .label for elements that define commands (4.11.5.1 - 4.11.5.8) ?

Could you actually explain what a shadowed attribute is ?

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49584</commentid>
    <comment_count>3</comment_count>
    <who name="Jan Varga">jan.varga</who>
    <bug_when>2011-06-14 16:46:54 +0000</bug_when>
    <thetext>never mind, I was not aware of bug 12845</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49758</commentid>
    <comment_count>4</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-06-17 02:56:05 +0000</bug_when>
    <thetext>I think the original bug report is right that having &quot;label&quot; on HTMLElement mean one thing but &quot;label&quot; on some particular HTMLElements mean something totally different is pretty broken....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49909</commentid>
    <comment_count>5</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2011-06-20 09:47:13 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; I think the original bug report is right that having &quot;label&quot; on HTMLElement
&gt; mean one thing but &quot;label&quot; on some particular HTMLElements mean something
&gt; totally different is pretty broken....

Not only that, but even if this behavior is desired, redeclaring a &quot;label&quot; property in the IDL has no material effect. The right way to do this is to simply define the behavior of the attribute differently for different elements. There is no need to duplicate it in the IDL to achieve that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49911</commentid>
    <comment_count>6</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-06-20 10:37:48 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Not only that, but even if this behavior is desired, redeclaring a &quot;label&quot;
&gt; property in the IDL has no material effect.

It does have the effect of requiring both HTMLElement.prototype.label and HTMLMoreSpecificElement.prototype.label to exist.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49935</commentid>
    <comment_count>7</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2011-06-20 19:26:51 +0000</bug_when>
    <thetext>From the EDITOR&apos;S RESPONSE &quot;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&quot;

Does anybody want to propose title and text for the tracker issue?  Or to create the tracker issue themselves?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50100</commentid>
    <comment_count>8</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2011-06-22 02:02:17 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; From the EDITOR&apos;S RESPONSE &quot;please add the TrackerRequest keyword to this bug,
&gt; and suggest title and text for the tracker issue; or you may create a tracker
&gt; issue yourself, if you are able to do so&quot;
&gt; 
&gt; Does anybody want to propose title and text for the tracker issue?  Or to
&gt; create the tracker issue themselves?


Please provide a title and text for the tracker issue (including at least a brief technical description of the issue) by midnight Eastern time on Friday, June 25th, 2011, or the Chairs will remove the TrackerRequest keyword.

Anyone adding it back after that point should provide the information required.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50115</commentid>
    <comment_count>9</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-06-22 20:34:03 +0000</bug_when>
    <thetext>Title:  The &quot;label&quot; attribute on HTMLElement should be renamed.

Text: Right now the &quot;label&quot; attribute on HTMLElement has completely different behavior from &quot;label&quot; attributes on some of the interfaces that inherit from HTMLElement.  This is pretty confusing to authors.  It would be better to call the HTMLElement attribute &quot;commandLabel&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50234</commentid>
    <comment_count>10</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2011-06-24 12:38:38 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; Title:  The &quot;label&quot; attribute on HTMLElement should be renamed.
&gt; 
&gt; Text: Right now the &quot;label&quot; attribute on HTMLElement has completely different
&gt; behavior from &quot;label&quot; attributes on some of the interfaces that inherit from
&gt; HTMLElement.  This is pretty confusing to authors.  It would be better to call
&gt; the HTMLElement attribute &quot;commandLabel&quot;.

http://www.w3.org/html/wg/tracker/issues/169</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50264</commentid>
    <comment_count>11</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-06-24 18:34:40 +0000</bug_when>
    <thetext>.label doesn&apos;t mean a different thing on HTMLElement and HTMLLabelElement. It means the same thing: it&apos;s the label of the command as used in a menu.

Renaming the attributes makes no sense given the command API.

I&apos;m fine with changing how this is specced, though. It&apos;s quite possible that the current mechanism doesn&apos;t make much sense. The main reason I did this using shadowing is that there doesn&apos;t seem to be a good way to make an attribute readonly on most elements but not all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50267</commentid>
    <comment_count>12</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-06-24 18:45:15 +0000</bug_when>
    <thetext>&gt; there doesn&apos;t seem to be a good way to make an attribute readonly on most
&gt; elements but not all

I agree that we absolutely need a way to do this in webidl.  That&apos;s come up in some of the other shadowing-related bugs...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50269</commentid>
    <comment_count>13</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-06-24 18:46:09 +0000</bug_when>
    <thetext>Upon some further thought, I&apos;d like to retract the escalation request and reopen the bug instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50512</commentid>
    <comment_count>14</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-06-30 18:34:03 +0000</bug_when>
    <thetext>Based on the discussion in bug 12845, it&apos;s not clear to me exactly what the problem is here.

Is it that a command created with accesskey=&quot;&quot; is never disabled, but &lt;textarea&gt;&apos;s &quot;disabled&quot; attribute can be set to true even if the element has an accesskey=&quot;&quot;?

Is it that there are a number of elements on which one can set accesskey=&quot;&quot; and thus cause those elements to become commands, on which the command API attributes are used for other purposes?

Or is it something else? (The two above are the two cases that I mentioned in bug 12845 for which I suggested filing bugs if they were considered real problems.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50524</commentid>
    <comment_count>15</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-06-30 21:33:44 +0000</bug_when>
    <thetext>I think at this point the suggestion would be to make use of heycam&apos;s new &quot;just declare a setter&quot; feature here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50930</commentid>
    <comment_count>16</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-07-11 21:04:55 +0000</bug_when>
    <thetext>After trying to do that for a while I decided you were right after all, and am renaming the command API members so they no longer use the same names as the element members.

It&apos;s not quite as conceptually neat, but in practice it was going to end up being a massive source of bugs because there were so many edge cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50931</commentid>
    <comment_count>17</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-07-11 21:22:19 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;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: http://html5.org/tools/web-apps-tracker?from=6285&amp;to=6286
Rationale: The other model, while probably nicer for authors in theory, had too many edge cases to make it reasonable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50935</commentid>
    <comment_count>18</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-07-12 01:49:48 +0000</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50936</commentid>
    <comment_count>19</comment_count>
    <who name="Jan Varga">jan.varga</who>
    <bug_when>2011-07-12 05:22:33 +0000</bug_when>
    <thetext>btw, what do you think about moving all those .command* attributes to an object and then add a new attribute .commandState (or some better name) ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50971</commentid>
    <comment_count>20</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-07-13 18:25:59 +0000</bug_when>
    <thetext>What problem does it solve?

(I&apos;ve been generally avoiding having &quot;helper objects&quot; that have a 1:1 mapping with some other object unless they&apos;re a list.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50972</commentid>
    <comment_count>21</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-07-13 18:26:29 +0000</bug_when>
    <thetext>(Please file a separate bug for it if you want to discuss that further; I don&apos;t see comments added to closed bugs.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53459</commentid>
    <comment_count>22</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:14:03 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>