Name
Element.getAttributeNode( ): return the Attr node for the named attribute â DOM Level 1 Core:
Synopsis
Attr getAttributeNode(Stringname
);
Arguments
-
name
The name of the desired attribute.
Returns
An Attr node that represents the value of the named
attribute, or null
if this
element has no such attribute.
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.
See Also
Element.getAttribute( )
,
Element.getAttributeNodeNS(
)
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.