Closed
Bug 12307
Opened 27 years ago
Closed 26 years ago
this.form.(radio button)[1].value not works
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
M13
People
(Reporter: boyarsh, Assigned: pollmann)
References
Details
Attachments
(7 files)
Mozilla M8
In this code:
"<tr><td><input type="radio"
name="Row" value="246"
onclick="parent.window.frames[2].location='Smeta.Foot.php3?Row='+this.form.Row[1].value+
'&bp=00173'"><td>1999 год
<tr><td><input type="radio" name="Row" value="281"
onclick="parent.window.frames[2].location='Smeta.Foot.php3?Row='+this.form.Row[2].value+'&bp=00173'"><td>1999
год"
when clicking on radio button I get message "this.form.Row[2].value has no
propertis" and location don't changes. Also "Row[2].value has no propertis"
In NS4.6 that's Ok
Steps to reproduce:
1. Download the attached files:
- testcase
- testframe
- frame1
- frame3
- frame3b
where the content for the testframe is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>test.html</TITLE>
</HEAD>
<BODY>
<FORM action="donothing.cgi" method="post">
<TABLE>
<TBODY>
<tr><td><input type="radio" name="Row" value="1"
onclick="parent.window.frames[2].location='hello'+this.form.Row[0].value+'.html'
"><td>Display Hello 1
<tr><td><input type="radio" name="Row" value="2"
onclick="parent.window.frames[2].location='hello'+this.form.Row[1].value+'.html'
"><td>Display Hello 2
</TBODY>
</TABLE>
</FORM>
</BODY>
</HTML>
2. Load the testcase file in apprunner
3. Click on the first RadioButton
Actual Results: The JavaScript error "this.form.Row[0] has no properties" is
displayed in the console.
Expected Results: frame3 file ("Hello 1") displayed in the third frame to the
right.
Build ID & Platforms Tested On:
1999-08-30-10-M10 on Win NT
1999-08-30-02-M10 on Linux
1999-08-30-10-M10 on Mac
Updated OS and Platform information.
| Assignee | ||
Updated•26 years ago
|
Assignee: vidur → pollmann
| Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M12
| Assignee | ||
Updated•26 years ago
|
Target Milestone: M12 → M13
| Assignee | ||
Comment 10•26 years ago
|
||
*** Bug 19460 has been marked as a duplicate of this bug. ***
Comment 11•26 years ago
|
||
Comment 12•26 years ago
|
||
I can reproduce the error in build M11 under Windows 98 with this simple test
case (enclosed also):
<FORM>
<INPUT TYPE=RADIO NAME="set">
<INPUT TYPE=RADIO NAME="set">
</FORM>
<SCRIPT>
document.writeln('Number of radio buttons = ' + document.forms[0].set.length
+ ' (should be 2)');
</SCRIPT>
Comment 13•26 years ago
|
||
*** Bug 19576 has been marked as a duplicate of this bug. ***
Comment 14•26 years ago
|
||
| Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Comment 15•26 years ago
|
||
*** This bug has been marked as a duplicate of 18840 ***
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 16•26 years ago
|
||
Verified dupe of bug 18840
Identically named radio and checkbox inputs don't create expected arrays.
Comment 17•25 years ago
|
||
*** Bug 85113 has been marked as a duplicate of this bug. ***
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•