W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2012

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 03 Apr 2012 17:27:45 -0400
Message-ID: <4F7B6B51.8010705@mit.edu>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:07 GMT