Open
Bug 402858
Opened 18 years ago
Updated 3 years ago
<input type="button" /> elements within <a href=""> elements cause 2 requests.
Categories
(Core :: DOM: Events, defect, P5)
Core
DOM: Events
Tracking
()
NEW
People
(Reporter: webmaster, Unassigned)
Details
(Keywords: testcase, Whiteboard: DUPEME)
Attachments
(1 file, 1 obsolete file)
|
319 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a9pre) Gecko/2007110705 Minefield/3.0a9pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a9pre) Gecko/2007110705 Minefield/3.0a9pre
<a href="/somewhere/delete/confirm"><input type="button" value="Delete" /></a>
Clicking the button, it sends 2 requests to the server.
Reproducible: Always
Steps to Reproduce:
1.Create a page that logs requests
2.Click the button
3.read the log!
Actual Results:
I received an error message in my web app saying the record didn't exist. This is because the 1st request deleted it, and the 2nd one was the error.
Expected Results:
I'd like it to just ask for one copy of the pace.
| Reporter | ||
Comment 1•18 years ago
|
||
A running example can be seen here:
http://www.drarok.com/fftestcase.php
source (as a symbolic link):
http://www.drarok.com/fftestcase.phps
Comment 2•15 years ago
|
||
Does this happen with Firefox 3.6.6 or later in a fresh profile?
Whiteboard: [CLOSEME 2010-07-30]
Version: unspecified → 3.0 Branch
| Reporter | ||
Comment 3•15 years ago
|
||
Still happening for me on Firefox for Windows, 3.6.6, brand new profile (created via -profileManager).
I've restored the ancient test code and updated it a little, it's now moved to
http://drarok.com/fftestcase/
Clicking the button shows two requests with the same ID are logged. Clicking the link works as expected. The clear log links does what it says on the tin.
| Reporter | ||
Comment 4•15 years ago
|
||
P.S. this behaviour is apparent on Windows Vista, I no longer have access to an XP machine, but I suspect that is irrelevant.
Updated•15 years ago
|
Whiteboard: [CLOSEME 2010-07-30]
Version: 3.0 Branch → 3.6 Branch
Hi,
The issue is reproductible for me with the latest version of Firefox :
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a5pre) Gecko/20100606 Minefield/3.7a5pre
I'll try to investigate it.
Thanks for your precious feedback Drarok !
Comment 6•15 years ago
|
||
Hello,
I have the same problem, but with a real button:
<a href="new_test.php?TEF=615&rnbr=55" title="Add new Risk Iteration"><button>New Evaluation</button></a>'
<a href="new_test.php?TEF=615&rnbr=55" title="Add new Risk Iteration">New Evaluation</a>
One click on the first link writes twice a line to a file, while a click on the second link gives only one line. I use XP and FF3.6.8
I can give some files to check.
wimb
Comment 7•15 years ago
|
||
I can reproduce with Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0b6pre) Gecko/20100903 Firefox/4.0b6pre
Attachment #287683 -
Attachment is obsolete: true
Comment 8•15 years ago
|
||
And also on Firefox 3.6.8 (with Firebug).
Status: UNCONFIRMED → NEW
Component: General → Layout: Form Controls
Ever confirmed: true
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → layout.form-controls
Hardware: x86 → All
Version: 3.6 Branch → Trunk
Comment 9•15 years ago
|
||
Presumably the activate from the button also triggers the link... Pretty sure we have another bug about this.
Component: Layout: Form Controls → DOM: Events
QA Contact: layout.form-controls → events
Whiteboard: DUPEME
Comment 10•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•