Closed
Bug 182356
Opened 22 years ago
Closed 22 years ago
hitting return in a form doesn't call onSubmit while clicking submit button does
Categories
(Camino Graveyard :: HTML Form Controls, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: premi-chimera, Assigned: bryner)
Details
Attachments
(1 file)
728 bytes,
application/octet-stream
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021127 Chimera/0.6+ Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021127 Chimera/0.6+ In an html form with a javascript validation function, like the example below, hitting the return key while in the text field should do the same thing as clicking the send button but in chimera, function() only get called if the button is clicked. It work correctly in IE and mozilla. <form action="action.php" method="post" onSubmit="function()"> <input type="text" name="a"> <input name="submit" type="submit" value="Send"> </form> Reproducible: Always Steps to Reproduce: 1. Click "Send" -> function() is called or 2. Hit the return key while in text field -> function() is not called Actual Results: 1. work, 2. doesn't Expected Results: both should call function()
Comment 1•22 years ago
|
||
Reporter, could you please attach a testcase html (with javascript) file. Thanks.
Comment 3•22 years ago
|
||
Does this happen in Mozilla 1.0 branch builds?
Comment 5•22 years ago
|
||
This works for me in Chimera. You have popup blocking turned on, which is why it doesn't work for you.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
That was stupid of me not having thaught of that... but still, I think it remains a bug but now it has to do with the requested/unrequested algorithm. This should definetly be in the requested category
You need to log in
before you can comment on or make changes to this bug.
Description
•