checking a radio button via dom doesn't uncheck currently checked button

VERIFIED FIXED

Status

()

P2
major
VERIFIED FIXED
20 years ago
20 years ago

People

(Reporter: paul, Assigned: karnaze)

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

20 years ago
In the following, if you press the "check button" button, you'll see that both
radio buttons are checked simultaneously.

<html>
<body>

<form name="form1">
<input type=button name="but1" value="print values" onclick="printValues()">
<input type=button name="but2" value="check button" onclick="checkButton()">
<BR>
<input type=radio checked name="foo">radio1<BR>
<input type=radio name="foo">radio2<BR>
</form>

<script>

var fld = document.form1.elements;
var len = fld.length;

function printValues() {
	dump("\nnumber of fields = " + len + "\n");
	for (var i = 0; i < len; i++) {
	    dump("\n" + i + ". name = " + fld[i].name + ", checked = " +
fld[i].checked)
	}
	dump("\n");
}

function checkButton() {
	fld[3].checked=true;
}

</script>

</body>
</html>
(Assignee)

Updated

20 years ago
Status: NEW → RESOLVED
Last Resolved: 20 years ago
Resolution: --- → FIXED

Updated

20 years ago
QA Contact: 4110 → 4137

Comment 1

20 years ago
Reassigning QA contact to cpratt@netscape.com (FORM related).

Updated

20 years ago
Status: RESOLVED → VERIFIED

Comment 2

20 years ago
I have already verified this fixed so I'll mark it as so.
You need to log in before you can comment on or make changes to this bug.