Closed Bug 334323 Opened 18 years ago Closed 18 years ago
form is not submitted if the submit button is image
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:184.108.40.206) Gecko/20060308 Firefox/220.127.116.11 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:18.104.22.168) Gecko/20060308 Firefox/22.214.171.124 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)
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 126.96.36.199 doesn't submit indeed.
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 188.8.131.52, 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.
*** This bug has been marked as a duplicate of 127903 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.