Section 25.103. Element.removeAttributeNode( ): remove an Attr node from an element


25.103. Element.removeAttributeNode( ): remove an Attr node from an element

DOM Level 1 Core:

25.103.1. Synopsis

 Attr removeAttributeNode(Attr oldAttr)     tHRows DOMException; 

25.103.1.1. Arguments

oldAttr

The Attr node to be removed from the element.

25.103.1.2. Returns

The Attr node that was removed.

25.103.1.3. Throws

This method may throw a DOMException with the following code values:


NO_MODIFICATION_ALLOWED_ERR

This element is read-only and does not allow attributes to be removed.


NOT_FOUND_ERR

oldAttr is not an attribute of this element.

25.103.2. Description

This method removes (and returns) an Attr node from the set of attributes of an element. If the removed attribute has a default value specified by the DTD, a new Attr is added representing this default value. If is often simpler to use removeAttribute( ) instead of this method.

25.103.3. See Also

Attr, Element.removeAttribute( )




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