Section 25.104. Element.removeAttributeNS( ): delete an attribute specified by name and namespace


25.104. Element.removeAttributeNS( ): delete an attribute specified by name and namespace

DOM Level 2 Core:

25.104.1. Synopsis

 void removeAttributeNS(String namespaceURI,                        String localName); 

25.104.1.1. Arguments

namespaceURI

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


localName

The name of the attribute within the specified namespace.

25.104.1.2. Throws

This method may throw a DOMException with a code of NO_MODIFICATION_ALLOWED_ERR if this element is read-only and does not allow its attributes to be removed.

25.104.2. Description

removeAttributeNS( ) works just like removeAttribute( ), except that the attribute to be removed is specified by name and namespace instead of simply by name. This method is useful only with XML documents that use namespaces.

25.104.3. See Also

Element.getAttributeNS( ), Element.removeAttribute( ), 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