W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: Input events, checkboxes and radio buttons

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 14 Jul 2009 05:27:20 +0000 (UTC)
To: Erik Arvidsson <erik.arvidsson@gmail.com>, Anne van Kesteren <annevk@opera.com>, "Michael A. Puls II" <shadow2531@gmail.com>
Cc: public-webapps <public-webapps@w3.org>
Message-ID: <Pine.LNX.4.62.0907140526220.23663@hixie.dreamhostps.com>
On Fri, 19 Jun 2009, Erik Arvidsson wrote:
>
> The HTML5 spec says to fire the input event when the user changes a 
> radio button or a checkbox. However, the spec says "When the input event 
> applies, any time the user causes the element's *value* to change". For 
> input[type="radio"] and input[type="checkbox"] the input event should be 
> fired any time the user causes the element's *checked* property to 
> change.

On Sat, 20 Jun 2009, Anne van Kesteren wrote:
> 
> The input event does not apply to radio/checkbox. (This is stated in the 
> radio/checkbox sectons.)

On Sat, 20 Jun 2009, Michael A. Puls II wrote:
> 
> The table under 
> <http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#the-input-element> 
> (scroll down a bit) shows "yes" for the input event under the 
> radio/checkbox column.

On Mon, 22 Jun 2009, Anne van Kesteren wrote:
> 
> Seems that table is buggy. (Or they do dispatch and then the normative 
> part of the specification is buggy.)

Fixed the table.


On Sat, 20 Jun 2009, Anne van Kesteren wrote:
> 
> Having said that, the change event does apply and it is not stated there 
> that it is also dispatched when the checkedness flag changes.

This is defined as part of the activation behavior of those input types.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 14 July 2009 05:27:56 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:32 GMT