W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2011

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 17 Feb 2011 10:25:43 -0500
Message-ID: <4D5D3DF7.90102@mit.edu>
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:


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.

Received on Thursday, 17 February 2011 07:25:43 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:30 UTC