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

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 UTC