Closed Bug 51034 Opened 26 years ago Closed 26 years ago

getElementsByTagName() causes exception

Categories

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

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: criege, Assigned: jst)

Details

(Whiteboard: [nsbeta3+])

Attachments

(1 file)

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)
QA Contact: gerardok → janc
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
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.
Keywords: nsbeta3
Marking nsbeta3+.
Severity: normal → blocker
Whiteboard: [nsbeta3+]
Fixed.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
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 → ---
The testcase works OK on WinNT 20000-09-21-08 : Windows NT4
Works for me on Linux, WinNT and Win2000, janc, please retest.
Status: REOPENED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → FIXED
Verified: 2000-09-28-09-MN6 : Win2000
Status: RESOLVED → VERIFIED
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+
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: