You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Julian Reschke <ju...@gmx.de> on 2000/10/25 11:52:50 UTC

bug in getAttributeNS

Hi,

the DOM level 2 method getAttributeNS currently returns null if the
attribute is not found (and it is documented to behave that way).

However, the W3C docs say:

getAttributeNS introduced in DOM Level 2
Retrieves an attribute value by local name and namespace URI. HTML-only DOM
implementations do not need to implement this method.
Parameters
namespaceURI of type DOMString
The namespace URI of the attribute to retrieve.

localName of type DOMString
The local name of the attribute to retrieve.

Return Value
DOMString
  The Attr value as a string, or the empty string if that attribute does not
have a specified or default value.


No Exceptions