W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > January 2011

[Bug 11347] Submitting a partially downloaded form

From: <bugzilla@jessica.w3.org>
Date: Thu, 06 Jan 2011 14:25:22 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PaqmI-0004cQ-Os@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11347

--- Comment #9 from Mounir Lamouri <mounir.lamouri@gmail.com> 2011-01-06 14:25:21 UTC ---
The specs do mention one case: if you hit enter on a text control and there is
a submit control in the form. In that case, it's not a requirement, the form
can be submittable as if the user clicked on the submit control.
AFAIK, the specs don't mention the case where there is no submit control in the
form. However, all major browsers have the same behavior: the form is submitted
if you press enter in a text field even if there is no submit control.

You can try this:
data:text/html,<form onsubmit="alert('submit!');"><input>

Opera, Chrome, Safari, Firefox and IE (only tested with IE6) have the exact
same behavior: the form is submitted.

I would bet that some forms would be broken if we change that. I'm thinking of
search fields for example.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 6 January 2011 14:25:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 6 January 2011 14:25:26 GMT