<?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>23173</bug_id>
          
          <creation_ts>2013-09-06 12:54:24 +0000</creation_ts>
          <short_desc>Scope &lt;label&gt; association to the home subtree rather than to the document, to find controls in e.g. a template (document fragment)</short_desc>
          <delta_ts>2013-11-12 00:08:58 +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>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#attr-label-for</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>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93092</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-09-06 12:54:24 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html
Multipage: http://www.whatwg.org/C#attr-label-for
Complete: http://www.whatwg.org/c#attr-label-for
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Allow association within home subtree rather than only in document, to find
the control in e.g. a template (document fragment)

Posted from: 90.230.218.37
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36 OPR/16.0.1196.55 (Edition Next)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93168</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-09 21:43:10 +0000</bug_when>
    <thetext>Hmm, interesting idea. What do browsers do?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93172</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-09-09 22:27:43 +0000</bug_when>
    <thetext>http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2514

Looks like Presto/Blink/Gecko already do what this bug suggests. (Haven&apos;t checked IE.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93373</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-13 22:40:34 +0000</bug_when>
    <thetext>This seems to only work for containership, not ID assignment:

   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2523

Interestingly, the for=&quot;&quot; thing seems to work even when the control is in the document but the label isn&apos;t:

   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2522

What do we want to spec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93390</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-09-14 20:33:47 +0000</bug_when>
    <thetext>Ah. 2522 doesn&apos;t work in Gecko though.

I don&apos;t know if it&apos;s annoying to implement the id lookup outside the document.

So I think we should either do what I suggested in comment 0 or keep the spec as is. What browsers do now is inconsistent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93439</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-16 17:54:34 +0000</bug_when>
    <thetext>I agree that those are reasonable alternatives. I don&apos;t know which one to go with. In the interests of minimising churn, I&apos;m biased towards the current text.

We should probably file bugs on the browsers to see if they&apos;ll change...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96150</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-12 00:08:58 +0000</bug_when>
    <thetext>I&apos;m going with leaving the spec as-is. It matches some browsers, and minimises churn. It&apos;s not obvious that any other text is significantly better enough to justify changing the spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>