Closed
Bug 962
Opened 26 years ago
Closed 26 years ago
document.getElementByID() does not work
Categories
(Core :: DOM: Core & HTML, defect, P1)
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.
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
Assignee | ||
Comment 1•26 years ago
|
||
Try document.getElementById() (note the case)
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
•