W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2012

Re: [whatwg] HTMLForms: Implicit Submission with {display:none} button

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 29 Jun 2012 18:24:16 -0400
Message-ID: <4FEE2B10.4080204@mit.edu>
To: whatwg@lists.whatwg.org
On 6/29/12 6:19 PM, Boris Zbarsky wrote:
> In any case, I believe the spec is wrong in one aspect: in the case that
> there is a default button, what needs to happen is a click event on that
> button, not just a triggering of its activation behavior. In particular,
> onclick handlers need to fire and the activation behavior should only
> happen if preventDefault is not called on the event.

Note that depending on how <input disabled> defines handling of click 
events, we may get the right thing happening with it for free. 
Unfortunately, I'm failing to find where the spec talks about the actual 
behavior of @disabled on submit controls.  :(

Received on Friday, 29 June 2012 22:24:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:43 UTC