[Webkit-unassigned] [Bug 9756] A form without a submit button unexpectedly performs its action when Return is pressed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 24 12:30:42 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=9756


Edward Rudd <eddie at omegaware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eddie at omegaware.com




--- Comment #2 from Edward Rudd <eddie at omegaware.com>  2010-02-24 12:30:42 PST ---
Further docs on the "expected' behavior and reasons.

http://www.alanflavell.org.uk/www/formquestion.html 

It is rather unexpected and actually causes much problems when webkit submits a
form on enter even though there are multiple text input elements in the form.

Here is a stackoverflow question about how to prevent webkit from doing this..

http://stackoverflow.com/questions/751702/how-can-i-prevent-webkit-browser-to-submit-a-form-when-enter-is-pressed-in-an-inp


IMO, it's a bad design to submit the form the way webkit does as (quote from
the first link)

(From HTML 2.0 spec) 
When there is only one single-line text input field in a form, the user agent
should accept Enter in that field as a request to submit the form.

(from article)
This was evidently meant as a convenient way to submit simple queries, but
reducing the risk, on a complex form, of prematurely submitting it while trying
to fill it in. 

the current webkit design causes a high volume of prematurely submitted forms.
(of which I am currently in the middle of deciding if I want to redesign EVERY
FORM on my web application so webkit can be used OR blacklisting webkit due to
numerous issues due to this bug)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list