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 13:45:12 -0700
Message-ID: <CABNRm62A32EN4KLNUO9BpuVfQA=sV=TJ-x6wEQheYuv=M=wE3g@mail.gmail.com>
FYI, I checked Firefox 5's & Internet Explorer 9's behaviors as well.

IE9 does implicit submission in the following conditions:

   - One text field
   - One text field with one visible submit button
   - One text field with one display:none submit button
   - Two text fields with one visible submit button

It does not do implicit submissio in the following conditions:

   - Two text fields
   - Two text fields with one visibility:hidden submit button
   - Two text fields with one display:none submit button

Basically, IE9 only does implicit submission when there is exactly one text
field (you can have checkbox, hidden, etc...) or there is a visible button
(i.e. not diplay: none nor visibility: hidden).

Firefox 5 does implicit submission in the following conditions:

   - One text field
   - One text field with one visible submit button
   - One text field with one display:none submit button
   - Two text fields with one visible submit button
   - Two text fields with one visibility:hidden submit button
   - Two text fields with one display:none submit button

It does not do implicit submissio in the following conditions:

   - Two text fields

In summary, Firefox special cases one text field (can have checkbox, hidden,
etc...) like MSIE and requires a submit button with more than two text
fields regardless of presence of visibility: hidden or display: none.
Received on Saturday, 24 September 2011 13:45:12 UTC

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