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:28:58 -0400
Message-ID: <CABirCh-5kAXO+AmzuR1cA-e_OAW01TisTFO4EMoTCQzuZCKCyQ@mail.gmail.com>
On Sun, Sep 25, 2011 at 11:46 AM, Ryosuke Niwa <rniwa at webkit.org> wrote:

> On Sun, Sep 25, 2011 at 7:49 AM, Glenn Maynard <glenn at zewt.org> wrote:
>> This is an authoring question, not a user one; either the page's author
>> intends the form to be submittable or he doesn't.  Having visibility: hidden
>> affect this is even more surprising to me as an author than display: none.
> Why is this authoring question? As an user, I'd like to know whether
> pressing enter in my text field triggers implicit submission or not.

How is that related to the presence or lack of a submit button?  In most
cases there's no correlation.  Where there is one, it's inconsistent,
because authors work around the lack of autosubmit by implementing it
manually; and even when they don't it's still inconsistent, with the strange
dependency on the number of inputs.  (Including hidden ones; because of
this, enabling CSRF form tags in a framework actually changes the UI of

It's an authoring question whether the form is one which is submittable, or
one which is, for example, saved automatically on each change, such as some
preference pages.

Glenn Maynard
Received on Sunday, 25 September 2011 09:28:58 UTC

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