<?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>24665</bug_id>
          
          <creation_ts>2014-02-14 19:34:33 +0000</creation_ts>
          <short_desc>htmlFor is a &quot;DOMSettableTokenList&quot; interface. Shouldn&apos;t it be a &quot;Elements&quot; collection?</short_desc>
          <delta_ts>2014-02-20 21:49:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-output-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>anakin_rendine</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100611</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-02-14 19:34:33 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html
Multipage: http://www.whatwg.org/C#the-output-element
Complete: http://www.whatwg.org/c#the-output-element
Referrer: 

Comment:
htmlFor is a &quot;DOMSettableTokenList&quot; interface. Shouldn&apos;t it be a &quot;Elements&quot;
collection?

Posted from: 78.13.40.15
User agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100624</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-14 21:18:47 +0000</bug_when>
    <thetext>We don&apos;t have an existing elaborate interface mechanism for adding and removing elements by reference and having it update a space-separated list of IDs. Developing one just for this obscure feature doesn&apos;t seem worth it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100673</commentid>
    <comment_count>2</comment_count>
    <who name="">anakin_rendine</who>
    <bug_when>2014-02-15 11:16:54 +0000</bug_when>
    <thetext>I thought it would be as easy as creating a reference to a form control from a label using the @for attribute defined on &lt;label&gt;, only with a collection of elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101013</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-20 20:47:44 +0000</bug_when>
    <thetext>The difference is that &lt;output for&gt; is a list of IDs, whereas &lt;label for&gt; is just one ID. Also, &lt;label&gt; doesn&apos;t have a mutable API for setting the for=&quot;&quot; attribute via an element either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101040</commentid>
    <comment_count>4</comment_count>
    <who name="">anakin_rendine</who>
    <bug_when>2014-02-20 21:49:19 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #3)
&gt; The difference is that &lt;output for&gt; is a list of IDs, whereas &lt;label for&gt; is
&gt; just one ID. Also, &lt;label&gt; doesn&apos;t have a mutable API for setting the for=&quot;&quot;
&gt; attribute via an element either.

Mutability IS a serious issue. This solves everything and the fact that the list is anyway available can be exploited somehow. Thank you.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>