[whatwg] Label question

martijn martijnw at hotpop.com
Wed Jun 30 16:45:09 PDT 2004


Ian Hickson wrote:

>As I think someone else pointed out, this is already disallowed by HTML4.
>
>WF2 says:
>
># For labels pointing (via for) to elements that are not form controls
>#   The attribute must be ignored. It will appear in the DOM (including as
>#   the value of htmlFor) but the control DOM attribute must return null and
>#   activating the label must not send focus to the associated element.
> - http://whatwg.org/specs/web-forms/current-work/#handling
>
>  
>
So labels aren't form controls?
That seems the case, I guess, when I look at this:
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.2.1

Thanks,
Martijn



More information about the whatwg mailing list