Closed
Bug 51034
Opened 26 years ago
Closed 26 years ago
getElementsByTagName() causes exception
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: criege, Assigned: jst)
Details
(Whiteboard: [nsbeta3+])
Attachments
(1 file)
|
502 bytes,
text/html
|
Details |
when calling getElementsByTagName('*') on an element that was obtained via a
getElementById('myId') element, the following exception is generated:
JavaScript error:
line 0: uncaught exception: [Exception... "Component does not have requested
interface" code: "-2147467262" nsresult: "0x80004002 (NS_NOINTERFACE)"
this works in M17, broken in M18 nightly build (Build ID 2000083111)
| Reporter | ||
Comment 1•26 years ago
|
||
Comment 2•26 years ago
|
||
criege@riege.de , I don't see a getElementsByTagname("*") call in your code.
The method is called with a "span" argument in your testcase.
I *do* see the exception (which should not occur), but you may want to update
your bug description. Confirming on WinNT, buildID:20000-90608.
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Reporter | ||
Comment 3•26 years ago
|
||
Yeah, sorry for the 'buggy' entry. I had it with a getElementsById('*') call in
my first test cases, thought it was buggy with '*', changed it to 'span' and
when it still didn't work I just put up the attachement w/o "fixing" it again.
I've narrowed this down now though:
- calling 'getElementsByTagName('*')' on the 'document' object yields the
correct results (an HTMLCollection is returned)
- calling 'getElementsByTagName('*')' on an 'Element' level throws the
exception.
it doesn't matter wether you specify '*' for "all tags" or hand the function a
specific tag to look for.
| Assignee | ||
Comment 5•26 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Comment 6•26 years ago
|
||
not working on Win2000
reopening for that platform only
verified on
2000-09-20-09-M18 : Windows98
2000-09-20-08-M18 : Mac
2000-09-20-13-M18 : Linux
Status: RESOLVED → REOPENED
OS: Linux → Windows 2000
Resolution: FIXED → ---
Comment 7•26 years ago
|
||
The testcase works OK on WinNT
20000-09-21-08 : Windows NT4
| Assignee | ||
Comment 8•26 years ago
|
||
Works for me on Linux, WinNT and Win2000, janc, please retest.
Status: REOPENED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → FIXED
Comment 10•19 years ago
|
||
RCS file: /cvsroot/mozilla/testing/mochitest/tests/test_bug51034.html,v
done
Checking in tests/test_bug51034.html;
/cvsroot/mozilla/testing/mochitest/tests/test_bug51034.html,v <-- test_bug51034.html
initial revision: 1.1
done
Flags: in-testsuite+
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•