Closed
Bug 171601
Opened 22 years ago
Closed 22 years ago
<a href=""> around submit element prevents form being submitted
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 127903
People
(Reporter: ed, Assigned: john)
References
()
Details
Attachments
(1 file)
1.16 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20020926 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20020926 This (and various other pages) wraps a form submit element inside an anchor <a> element (for the sake of mouseover code, apparently); the anchor is given a 'href="#"' attribute. On clicking the button, it seems that the anchor element steals the click event from the submit button, preventing the form from being submitted. Reproducible: Always Steps to Reproduce: 1. Click on 'Verify items' button Actual Results: Nothing Expected Results: Submit form (at the given URL, this results in an alert box being displayed) Also seen on Linux-i686 20020916.
1. <input type="submit"/> - works 2. the above inside <a> - works 3. as 1, inside <a href=""> - fails 4. as 1, inside <a href="#"> - fails
Comment 2•22 years ago
|
||
Mozilla treats the button as a link. I don't know if that's the right behavior or not, but it is quite bad HTML. It looks like the page in question is using the <a href="#" ...> to get mouseover effect on the button (button-mouseover probably doesn't work in old browsers).
Comment 3•22 years ago
|
||
*** This bug has been marked as a duplicate of 127903 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•