W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2008

Re: DOM Events and disabled form controls

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 22 Oct 2008 14:04:30 +0000 (UTC)
To: Olli Pettay <Olli.Pettay@helsinki.fi>
Cc: public-webapps@w3.org
Message-ID: <Pine.LNX.4.62.0810221402200.1237@hixie.dreamhostps.com>

On Sun, 19 Mar 2006, Olli Pettay wrote:
> I wonder which events should be dispatched to disabled form controls?
> WebForms2.0 says the following "The default action of a click on a 
> disabled button is to do nothing." But that is only about default 
> handling, not about event dispatching; should onclick work in this case: 
> <input type="button" onclick="alert(event.type);" value="foobar"/>
> I haven't found anything related to this problem in DOM Events specs, or 
> elsewhere. I think onclick can't be dispatched, that would probably 
> break too many pages, but what about other events and other form 
> controls than just button?

Fixed in HTML5. There's still no spec that defines that events actually 
get fired for user interaction (mouse clicks, etc) though, as far as I can 

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 22 October 2008 14:05:09 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:12 UTC