Open Bug 476446 Opened 17 years ago Updated 3 years ago

Buggy behaviour with submit button and timeouts

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: enrique.arizonbenito, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 I did a server code that automatically generetas the next wrong html: <a href="/?action=checkOut&id=1003"><input type='submit' value ='Check-Out'/></a> It's wrong since the sumit input is not inside a <form> tag. By pressing the button a normal http request is generated following the anchor (./?action=checkOut...), but sometimes a second one is generated too. This second one looks to be related to the fact of using a submit button inside the anchor, but still, the http request is that of the anchor, not a new one related to a form. If I replace the <input type='submit' ...> with something more sensible, for example a <div> tag, the error vanished aways. Also, if the network connection/server answer is slow enought then no second http request is NOT generated. So, a a summary, the error just appears when a <input type='submit'> is placed inside the anchor AND the response time is fast (a ten of second or less) Reproducible: Always Steps to Reproduce: (as described in "Details") Actual Results: Two http request are generated Expected Results: A single http request ought to be generated It applies to both Firefox 3.1b2 and Firefox 3.0.5. I didn't check with other browser versions.
Component: General → HTML: Form Submission
Product: Firefox → Core
QA Contact: general → form-submission
Component: HTML: Form Submission → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.