Closed
Bug 6785
Opened 25 years ago
Closed 25 years ago
document.getElementsByName not returning correct information
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
M7
People
(Reporter: jcarpenter0524, Assigned: vidur)
Details
Windows Build: 1999-05-19-10-M6
Mac Build: 1999-05-09-M6
Tested on: Win98, MacPPC
- View this code sample:
<HTML>
<HEAD><TITLE>test</TITLE></HEAD>
<BODY>
<TABLE NAME="table1">
<TR>
<TD>Hi</TD>
</TR>
</TABLE>
<SCRIPT TYPE="text/javascript">
t = document.getElementsByName("table1")
document.writeln(t.length);
document.writeln(t[0]);
</SCRIPT>
</BODY>
</HTML>
- Should return:
1
table
- Instead it returns:
0 null
(writeln error written up separately)
Reporter | ||
Updated•25 years ago
|
QA Contact: 4015 → 3847
Reporter | ||
Comment 1•25 years ago
|
||
setting QA Contact to janc
Reporter | ||
Comment 2•25 years ago
|
||
Mac doesn't show any return values at all. Just shows the table.
Reporter | ||
Updated•25 years ago
|
Hardware: PC → All
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M7
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•25 years ago
|
||
Good catch. Fix checked in on 6/11/1999.
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 4•25 years ago
|
||
Verified 1999-06-15-16-M7
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•