Closed Bug 962 Opened 26 years ago Closed 26 years ago

document.getElementByID() does not work

Categories

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

x86
Windows 95
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: angus, Assigned: vidur)

Details

Test case: <p id="foo">Testing</p> <script> alert(document.getElementByID("foo")); </script> this should send out "[object HTMLParagraphElement]" currently, the only way I know to get an element is getElementByTagName(), which is tedious because then I need to index all of those and check each one's ID via getDOMAttribute (which should be changed to getAttribute some day, but that's another bug) This would be very helpful to the XPFE stuff I'm hacking together.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
Try document.getElementById() (note the case)
Status: RESOLVED → VERIFIED
Marking Verified/Invalid
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.