Closed
Bug 38763
Opened 25 years ago
Closed 25 years ago
test in XML for document.getElementById returns true
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
WONTFIX
People
(Reporter: dbaron, Assigned: jst)
Details
DESCRIPTION: The test:in JS
if (document.getElementById)
now returns true and goes to the then-clause rather than the else-clause,
despite that document.getElementById is not implemented. This leads to:
JavaScript error:
line 0: uncaught exception: [Exception... "Method not implemented" code:
"-2147467263" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location:
"http://www.people.fas.harvard.edu/~dbaron/dom/test/one-core-xml/Attr Line: 71"]
when it is used.
This prevented all of my DOM tests in XML from working because I used to use
that test in http://www.people.fas.harvard.edu/~dbaron/dom/test/base.js, line
71.
STEPS TO REPRODUCE:
* hard, since I just worked around the problem...
DOES NOT WORK CORRECTLY ON:
* Linux mozilla 2000-02-08-08-M16
WORKS CORRECTLY ON:
* older builds
ADDITIONAL INFORMATION:
I realize this is because of your work in progress for DOM2, but it would be
nice if the tests for the functions could fail so one can properly test for the
presence of the function.
Assignee | ||
Comment 1•25 years ago
|
||
Unfortunately there's no easy way for me to do this, the code that does this is
automatically generated and the same code is used for all types of documents in
mozilla. However, we're getting close to having getElementById() work properly
in XML documents in mozilla and once that's done then you an simply go ahead an
use it. I could make getElementById() not throw the exception (and return null)
if called on an XML document if that would help you, let me know if you want me
to do that.
Reporter | ||
Comment 2•25 years ago
|
||
It doesn't make that much difference, since I already worked around it.
Assignee | ||
Comment 3•25 years ago
|
||
Ok, marking WONTFIX then.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
Comment 4•24 years ago
|
||
Is there any open bug to track the progress of the implementation
of "getElementById()" for XML documents? Tia
Assignee | ||
Comment 5•24 years ago
|
||
AFAIK there's no bug on this, but Nisheeth has code for doing this in his tree,
he's working on getting that tested and checked in.
Updated•24 years ago
|
Component: DOM Level 1 → DOM HTML
Comment 8•24 years ago
|
||
VERIFIED wontfix. getElementById() for xml is implemented
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•