Closed Bug 129969 Opened 23 years ago Closed 23 years ago

"checked" attribute for checkbox or radio button is ignored

Categories

(Core :: Layout: Form Controls, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.0

People

(Reporter: kazhik, Assigned: john)

Details

Attachments

(1 file)

"checked" attribute for checkbox or radio button is ignored if it's specified before "type" attribute. <form> <input type="checkbox" checked>checked<br> <input checked type="checkbox">checked<br> <hr> <input type="radio" checked name="g1">group1(checked) <input type="radio" name="g1">group1<br> <input checked type="radio" name="g2">group2(checked) <input type="radio" name="g2">group2 </form>
worksforme in a 2002-03-07-08 nightly. Broken in 2002-03-08-07 nightly. jkeiser, I blame you. :)
Assignee: rods → jkeiser
Damn straight. I thought I had caught all these permutations, but I guess not.
Keywords: nsbeta1
Target Milestone: --- → mozilla1.0
Status: NEW → ASSIGNED
Attached patch PatchSplinter Review
Fixes the problem for me. Everything still submits and such. This patch also includes a minor optimization to make hidden inputs churn less with memory (the way it is right now, <input type=hidden value=blah> will set mValue equal to the value attribute and then delete mValue, for no reason).
Comment on attachment 73488 [details] [diff] [review] Patch r=rods
Attachment #73488 - Flags: review+
Comment on attachment 73488 [details] [diff] [review] Patch sr=jst
Attachment #73488 - Flags: superreview+
Fix checked in last night.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verified fixed on win2000 ---- buildID: 2002-03-22-05trunk
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: