Closed
Bug 362484
Opened 19 years ago
Closed 19 years ago
getAttributeNS not working with xml:id
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: bz, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1) Gecko/20060601 Firefox/2.0 (Ubuntu-edgy)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1) Gecko/20060601 Firefox/2.0 (Ubuntu-edgy)
el.getAttributeNS('http://www.w3.org/xml/1998/namespace','id');
does not work as expected.
getAttributeNS works with all namespace but not the xml: namespace.
If the xml: namespace gets a different namespace it works - but is not nice to
have an xml:id written like xxx:id.
Reproducible: Always
Steps to Reproduce:
See example
Actual Results:
no result
Expected Results:
the value of the xml:id attribute
Comment 1•19 years ago
|
||
*** This bug has been marked as a duplicate of 275196 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Comment 3•19 years ago
|
||
This is invalid, for two reasons:
1) The testcase is using the wrong namespace. The right one is
"http://www.w3.org/XML/1998/namespace"
2) It should be alerting value, not el.value.
Fixing those bugs in the testcase makes it work.
Severity: normal → minor
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•