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

Rob Crowther robertc at boogdesign.com
Wed May 23 17:27:01 PDT 2012

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?


More information about the whatwg mailing list