W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2008

[whatwg] Proposal: Allow block content inside label element

From: Matthew Paul Thomas <mpt@myrealbox.com>
Date: Fri, 2 May 2008 09:57:34 +0100
Message-ID: <fcdc7185530359db6ec24c45a67b2c91@myrealbox.com>
On May 9, 2007, at 2:27 AM, Matthew Paul Thomas wrote:
> On May 8, 2007, at 9:06 PM, Kristof Zelechovski wrote:
>> ...
>> From the behavioral point of view: The purpose of a LABEL control is 
>> to redirect focus on click.  It does not make much sense with a 
>> TEXTAREA control that is usually big enough to click upon.
>> ...
> If a browser redirects focus to a *text field* when you click its 
> <label>, on a platform where that doesn't happen in native GUIs (e.g. 
> Windows, Mac OS, Gnome, or KDE), that's a bug in the browser. Web 
> Forms 2 clarifies this.
> <http://www.whatwg.org/specs/web-forms/current-work/#label>
> ...

As an update on this: In KDE 4, released in January this year, clicking 
a text field's label focuses the field. This was not the case in KDE 3.

So, it would be appropriate for Konqueror (or, when running in KDE 4, 
Firefox or Opera) to focus text fields when their <label> is clicked, 
but not for browsers on other platforms. Web Forms 2 allows this 
platform-specific behavior.

Matthew Paul Thomas
Received on Friday, 2 May 2008 01:57:34 UTC

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