[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:

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


More information about the whatwg mailing list