[whatwg] Form controls inside a label but not labelled by it

Boris Zbarsky bzbarsky at MIT.EDU
Thu Feb 17 07:25:43 PST 2011


On 2/17/11 8:15 AM, Anne van Kesteren wrote:
> If you nest elements with activation behavior only the innermost is
> activated.

<textarea> doesn't have activation behavior.  So if I have:

   <label><textarea></textarea></label>

and I click the textarea, then the <label> will be activated unless we 
add some sort of special-case for this.

> You can also test this by e.g. nesting <a> elements and see
> which link is followed.

<a> has activation behavior (if it has an href and so forth).  So the 
situation is totally different.

-Boris



More information about the whatwg mailing list