Closed
Bug 334323
Opened 17 years ago
Closed 17 years ago
form is not submitted if the submit button is image
Categories
(Toolkit :: Form Manager, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 127903
People
(Reporter: dabac_rm, Unassigned)
References
()
Details
Attachments
(1 file)
1.88 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 I noticed it on various sites I worked on: If there is a form and the submit button is input type="image", the form can't be submitted nor by clicking on the button, nor by pressing enter. Note: THIS WAS WORKING FINE IN VERSION 0.9x, BUT I NOTICED IT SINCE VERSION 1.0.6 AND IT'S STILL NOT WORKING! Reproducible: Always Steps to Reproduce: 1. enter any username under "korisnicko ime" on the right upper side in the input field 2. enter any password under "lozinka" on the right upper side in the input field 3. click 'LOGIN' below those fields, or press ENTER - whatever. Actual Results: Nothing - form is not submitted. Expected Results: Form should be submitted Form works fine in IE (all versions), Opera (all versions), previous versions of Firefox (0.9x)
Comment 1•17 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060416 Firefox/3.0a1 I see the same behaviour in Firefox trunk and IE: it submits the form but I'm thrown back on the same page without any comment, possibly because the user id is not valid. Firefox 1.5.0.2 doesn't submit indeed.
Comment 2•17 years ago
|
||
So, here's a testcase that fires alerts upon form events. The submit button in the provided URL is wrapped in an anchor tag which 'eats' the click event, and the form submit never gets fired. Strangely, in 1.5.0.2, the anchor tag gets fired twice in this case; I'm not sure why that is. In Deer Park (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060406 Firefox/1.6a1), the form submits, but the anchor still gets fired twice. The summary of this bug is therefore misleading; image submit elements work, of course. The edge case where they are wrapped in anchor tags (presumably so the image can be changed) is handled poorly.
Comment 3•17 years ago
|
||
*** This bug has been marked as a duplicate of 127903 ***
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•15 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•