Closed Bug 115303 Opened 24 years ago Closed 24 years ago

onChange for checked radio buttons can cause infinite submission loop

Categories

(Core :: Layout: Form Controls, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 112218

People

(Reporter: Chris.Dunn, Assigned: rods)

Details

(Tested on Linux using build ID 2001112012) If the onChange script for a radio button submits the button's form and one of the buttons has a "checked" designation, Mozilla submits the form with no interaction from the user. This can cause an infinite loop, with the browser constantly re-submitting the form. The following html will reproduce this if placed on the server as "test_js.html" : <html> <head> <title>A test case for JavaScript bug</title> </head> <body> <form action="/test_js.html" method="GET"> <input type=RADIO name="f1" value="No" onChange="this.form.submit(); return true;" checked>No <input type=RADIO name="f1" value="Yes" onChange="this.form.submit(); return true;">Yes </form> </body> </html>
still happening on current trunk.
Assignee: rogerl → rods
Severity: normal → major
Status: UNCONFIRMED → NEW
Component: Javascript Engine → HTML Form Controls
Ever confirmed: true
QA Contact: pschwartau → madhur
*** This bug has been marked as a duplicate of 112218 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.