- 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
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 tell. -- 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