Section 25.101. Element.hasAttributeNS( ): determine whether this element has a specified attribute


25.101. Element.hasAttributeNS( ): determine whether this element has a specified attribute

DOM Level 2 Core:

25.101.1. Synopsis

 boolean hasAttributeNS(String namespaceURI,                        String localName); 

25.101.1.1. Arguments

namespaceURI

The unique namespace identifier for the attribute, or null for no namespace.


localName

The name of the attribute within the specified namespace.

25.101.1.2. Returns

true if this element has an explicitly specified value or a default value for the specified attribute; false otherwise.

25.101.2. Description

This method works like hasAttribute( ), except that the attribute to be checked for is specified by namespace and name. This method is useful only with XML documents that use namespaces.

25.101.3. See Also

Element.getAttributeNS( ), Element.hasAttribute( ), Element.setAttributeNS( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net