Closed
Bug 20815
Opened 25 years ago
Closed 25 years ago
document.getElementsByName not working
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
CLOSED
INVALID
People
(Reporter: dbaron, Assigned: vidur)
Details
Attachments
(1 file)
|
507 bytes,
text/html
|
Details |
DESCRIPTION: document.getElementsByName (which is part of the HTML DOM, as
opposed to document.getElementsByTagName, which is part of the Core DOM) is not
working.
STEPS TO REPRODUCE:
* load attached test case
ACTUAL RESULTS:
* alert comes up giving the values of two things (the lengths of
document.getELementsByTagName('body') and document.getElementsByName('body')).
The first is 1, the second is 0.
EXPECTED RESULTS:
* both should be 1
DOES NOT WORK CORRECTLY ON:
* Linux, mozilla, 1999-12-02-16-M12
| Reporter | ||
Comment 1•25 years ago
|
||
| Reporter | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•25 years ago
|
||
Never mind. I'm going crazy... :-)
getElementsByName is for getting by NAME attribute.
Marking INVALID
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
•