<?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>26339</bug_id>
          
          <creation_ts>2014-07-15 18:29:47 +0000</creation_ts>
          <short_desc>Imperatively change (set/add/remove) a form control&apos;s labels</short_desc>
          <delta_ts>2014-09-18 21:20:15 +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>NEEDSINFO</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-label-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>caitpotter88</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>108954</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-07-15 18:29:47 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html
Multipage: http://www.whatwg.org/C#the-label-element
Complete: http://www.whatwg.org/c#the-label-element
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
It bothers me that `htmlFor` is essentially the only way for us to
imperatively change a control&apos;s associated labels. The reasons why are
obvious, it depends on either name or id to be present, and name/id have
undesirable side-effects. It would be super useful if we had a better way to
do this. The use-case is basically to provide a way to associate a label with
a control without putting any nodes in the global object, and without adding
any properties to an HTMLFormElement, but still providing the UI benefits of
associating the label with the control.

Posted from: 99.237.75.191
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110951</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-03 23:14:37 +0000</bug_when>
    <thetext>Can&apos;t you just be the control inside the &lt;label&gt;?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>