Re: Input events, checkboxes and radio buttons

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 UTC