[whatwg] LABEL and radio/checkbox onclick
Maciej Stachowiak
mjs at apple.com
Sun Jul 18 23:10:23 PDT 2004
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.
Regards,
Maciej
More information about the whatwg
mailing list