Closed Bug 6785 Opened 25 years ago Closed 25 years ago

document.getElementsByName not returning correct information

Categories

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

All
Windows 98
defect

Tracking

()

VERIFIED FIXED

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)
QA Contact: 4015 → 3847
setting QA Contact to janc
Mac doesn't show any return values at all. Just shows the table.
Hardware: PC → All
Status: NEW → ASSIGNED
Target Milestone: M7
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Good catch. Fix checked in on 6/11/1999.
Status: RESOLVED → VERIFIED
Verified 1999-06-15-16-M7
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.