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:

http://www.boogdesign.com/examples/forms2/test-validate-1.html
http://www.boogdesign.com/examples/forms2/test-validate-2.html

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:

http://www.boogdesign.com/examples/forms2/test-validate-3.html

But add a submit button and it does:

http://www.boogdesign.com/examples/forms2/test-validate-4.html

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

Rob
Received on Thursday, 24 May 2012 00:27:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT