Closed Bug 122957 Opened 23 years ago Closed 23 years ago

multiple <INPUT checked .... causes problems in radio selections...

Categories

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

x86
Linux
defect
Not set
major

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: andrewm.nospam, Assigned: john)

References

Details

Attachments

(1 file)

Given the following html, 2 radio buttons become selected, and it is impossible for the user to deselect either button... <html> <body> <form> <INPUT checked TYPE="radio" NAME="AccountNum" VALUE="0987654321" CLASS="radiowhite"> 0987654321 <br> <INPUT checked TYPE="radio" NAME="AccountNum" VALUE="0123456789" CLASS="radiowhite"> 0123456789 </form> </body> </html> While this may be bad, silly html (the fact that 2 inputs are listed as checked, I can't actually see in the specifications where this is considered illegal html (just a recommendation to avoid other than exactly one "checked"). Perhaps I missed it. In any case even if it is illegal html, it would be nice if mozilla handled it better. Perhaps by implication this html could be considered illegal as there is probably no way to display it "correctly" Unfortunately the above does occur in real life, and has cost me money (don't worry, I don't blame mozilla, its bad html)... at http://www.virginmobile.com.au if you log in to "my account" (which I'm guessing you cant ;) where the account has more than one mobile, and you attempt to top up your mobile account, the radio buttons for all your mobiles are selected and you cannot unselect any. This means that you can only top up the phone number that happens to appear first! (no matter how many times you click on the second number). As such, when attempting to top up my mobile, only my wife's mobile was toped up, to an amount she would take years to use. The mobile company involved has refused to transfer the money back !!! (and has refused to allow me to submit a bug report to the webmaster regarding the problem). Anyway, probably would be good if mozilla could cope with this somehow, as I guess technically it probably should ignore all but the first "checked" in a group of radio buttons. I've used mozilla 0.9.7 and netscape 4.78, both suffer similarly. thanks, Andrew Mitchell
Status: UNCONFIRMED → NEW
Depends on: 108308
Ever confirmed: true
Target Milestone: --- → Future
To jkeiser.
Assignee: alexsavulov → jkeiser
Severity: normal → major
Component: Form Submission → HTML Form Controls
Target Milestone: Future → ---
Attached file testcase from description (deleted) —
on 2202-01-28-08-trunk linux RedHat this works for me and 2002-1-29-03-trunk works for me as well I can see only one radio button selected... the first one
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
hmmm, just tried again today, works for me too!!! maybe after my latest upgrade, I hadn't restarted mozilla. sorry for the interuption.
Component: HTML Form Controls → Form Submission
verifying
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: