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

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

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Sat, 24 Sep 2011 22:39:06 -0700
Message-ID: <CABNRm62FcTzrG+cdyq+gW6WW6jzYdgtQ+en9WfNRAZpdr3o8hg@mail.gmail.com>
On Sat, Sep 24, 2011 at 4:55 PM, Glenn Maynard <glenn at zewt.org> wrote:

> On Sat, Sep 24, 2011 at 12:47 PM, Ryosuke Niwa <rniwa at webkit.org> wrote:
>
>> However, it doesn't submit when we have:
>>
>>   - Two text fields with one display:none submit button
>>
> ...
>>
>
> Another outlier: Android's WebKit, at least in 2.3.5, seems to always allow
> user submit when editing a text input, via the "Go" button in the input
> method, regardless of any submit buttons or their state.
>
> IE9 does implicit submission in the following conditions:
>>   - Two text fields with one visible submit button
>>
>>
>> It does not do implicit submissio in the following conditions:
>>   - Two text fields with one visibility:hidden submit button
>>
>
> This makes the least sense of all to me.  visibility: hidden shouldn't have
> a side-effect like this.


Why? From user's perspective, not having submit button, having a submit
button with display: none, having a submit button with visibility: hidden
all look the same.

- Ryosuke
Received on Saturday, 24 September 2011 22:39:06 UTC

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