W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2011

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

From: Glenn Maynard <glenn@zewt.org>
Date: Sun, 25 Sep 2011 12:59:35 -0400
Message-ID: <CABirCh-dws4b00UfVw4nA3QTGpF9K2gnPsj7CCt7pyKkmH6GPg@mail.gmail.com>
On Sun, Sep 25, 2011 at 12:51 PM, Kaustubh Atrawalkar <kaustubh at motorola.com
> wrote:

> Yes, but author can just reduce his scripting by using default behavior
> provided by the browser engine. I agree that user may not know pressing
> enter results in general form submission, but in case of search he does.
> Just we can make it generic instead of just for one/two input elements.
>

That would have been nice, but there's already interop here: in all four
browsers I tested, two text inputs with no submit button never implicitly
submits.  No browser vendor would change that and break what little
consistency there is, and web compatibility would likely veto it anyway.

See http://zewt.org/~glenn/test-form-submission/table.html, column 4.

But ironing out the bizarre corner cases (eg. columns 7, 8) would be nice,
if compatibility will allow it.

-- 
Glenn Maynard
Received on Sunday, 25 September 2011 09:59:35 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:36 UTC