W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] LABEL and radio/checkbox onclick

From: Matthew Thomas <mpt@myrealbox.com>
Date: Mon, 19 Jul 2004 01:25:25 +1200
Message-ID: <ED5EAD3F-D8BD-11D8-A8DD-000A95AD3972@myrealbox.com>
On 19 Jul, 2004, at 12:06 AM, Hallvord Reiar Michaelsen Steen wrote:
> ...
> It is AFAIK not covered by any spec whether clicking a LABEL should
> trigger an onClick event on the associated control. Implementations
> have been inconsistent. IMO the most useful implementation is that
> clicking a label should trigger onClick for form controls - at least
> for those that change state (such as a checkbox).
> ...

In non-Web GUIs, labels are only clickable for checkboxes and 
radiobuttons.* It would be nice if exactly the same was true for 
HTML+WF2, otherwise people would end up wasting time clicking listbox 
etc labels in native apps and wondering why nothing was happening.

* And disclosure triangles, but they're not in HTML or WF2.

-- 
Matthew Thomas
http://mpt.net.nz/
Received on Sunday, 18 July 2004 06:25:25 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC