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

[whatwg] LABEL and radio/checkbox onclick

From: Hallvord Reiar Michaelsen Steen <hallvors@online.no>
Date: Sun, 18 Jul 2004 14:06:25 +0200
Message-ID: <40FA83E1.21937.631903E@localhost>
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).

One (not purpose-written) TC:
http://www.hallvord.com/opera/rqa.php
Older versions of Opera would not enable the "SELECT multiple" if one 
clicked the text next to the first checkbox instead of the checkbox 
itself.

(If anyone feels tempted to actually use that page for anything note 
that it doesn't handle HTTP/1.1 logs well, only 1.0.)
Received on Sunday, 18 July 2004 05:06:25 UTC

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