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

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

From: Rob Crowther <robertc@boogdesign.com>
Date: Thu, 24 May 2012 01:27:01 +0100
Message-ID: <4FBD8055.8050508@boogdesign.com>
To: whatwg@lists.whatwg.org
On 22/02/12 00:35, Ian Hickson wrote:
> I've changed the spec to be clearer that CSS cannot be taken into account
> when determining the default. The default button is just always the first
> submit button in the form.
What about the situation where there isn't a button?  Implicit 
submission still seems to happen on forms which have just a single 
element, for example:


These both trigger the form validation algorithm in Firefox, Opera & 
Chrome if you just hit return.  This form with two inputs doesn't 
trigger implicit submission:


But add a submit button and it does:


Because in everything hinges on the 'default button' this 
behaviour doesn't seem to be covered.  Is this intentional?

Received on Thursday, 24 May 2012 00:27:35 UTC

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