This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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'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
Can't you just be the control inside the <label>?