JavaScript: The Definitive Guide

25.95. Element.getAttributeNode( ): return the Attr node for the named attribute

DOM Level 1 Core:

25.95.1. Synopsis

Attr getAttributeNode(String name);

25.95.1.1. Arguments

name

The name of the desired attribute.

25.95.1.2. Returns

An Attr node that represents the value of the named attribute, or null if this element has no such attribute.

25.95.2. Description

getAttributeNode( ) returns an Attr node that represents the value of a named attribute. Note that this Attr node can also be obtained through the attributes property inherited from the Node interface.

25.95.3. See Also

Element.getAttribute( ), Element.getAttributeNodeNS( )

Категории