[whatwg] LABEL and radio/checkbox onclick
Matthew Thomas
mpt at myrealbox.com
Sun Jul 18 06:25:25 PDT 2004
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/
More information about the whatwg
mailing list