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

On 4/3/12 5:14 PM, Glenn Maynard wrote:
> Ten years later it's still giving me headaches, when I try to do a
> trivial two-input login form without a browser submit button, and find
> that every obvious way of hiding the submit button breaks implicit
> submit in one browser or another.  Do I really need to stick the submit
> button in an overflow: hidden, 0x0 div?  I know I found a less ugly
> workaround for this the last time I hit this...

Well, the fact that display:none makes it not submit is clearly a 
browser bug in the browsers it happens in.

The only question is whether just not having a button at all should also 
submit.

-Boris

Received on Tuesday, 3 April 2012 14:27:45 UTC