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

Boris Zbarsky bzbarsky at MIT.EDU
Tue Apr 3 14:27:45 PDT 2012


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



More information about the whatwg mailing list