Closed Bug 450100 Opened 17 years ago Closed 17 years ago

Linked <a href=""><button></button></a> being submitted twice

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 346401

People

(Reporter: niklas, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080715 Fedora/2.0.0.16-1.fc8 Firefox/2.0.0.16 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1 When wrapping an anchor element around a <button> element, the linked item is fetched twice. This is not the behavior in Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080715 Fedora/2.0.0.16-1.fc8 Firefox/2.0.0.16 I am attaching an example PHP file. Reproducible: Always Steps to Reproduce: 1. Click the button without the anchor element. 2. Wait for 2 seconds. 3. Click the linked button. 4. Wait for 2 seconds 5. Click the link Actual Results: The first click does not reload the page. http://www.w3.org/TR/REC-html40/interact/forms.html#edef-BUTTON says the button should behave like a <input type="button"> element, so the behavior is acceptable. The second click reloads the page and in the log file (test.txt) I get two lines with the current UNIX timestamp. I.e. the page is requested twice. Once for the outer link, and once again for the <button> tag. (probably) The third link reloads the page and yields one new line in the log file. Expected Results: The second link should only generate one request.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: