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

[whatwg] LABEL and radio/checkbox onclick

From: Maciej Stachowiak <mjs@apple.com>
Date: Sun, 18 Jul 2004 23:10:23 -0700
Message-ID: <51F6F0FA-D94A-11D8-A306-000A95A51E62@apple.com>

On Jul 18, 2004, at 5:06 AM, Hallvord Reiar Michaelsen Steen wrote:

> Something WF2 might be a good place to clarify..
> 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).

It should be consistent with the way the platform native controls 
handle this, on a per-platform basis. I know that on Mac OS X clicking 
the label for a checkbox or radio button activates it, but I have no 
idea about Windows or X-based desktops or various embedded platforms.

Received on Sunday, 18 July 2004 23:10:23 UTC

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