The item()
method returns the node at
the specified index in a namedNodeMap, as a Node object.
This syntax:
attributes.item(0);
has the same result as this syntax:
attributes[0];
item |
Yes | Yes | Yes | Yes | Yes |
nodeObj.item(index);
Parameter | Type | Description |
---|---|---|
index | Number | Required. The index of the node in the namedNodeMap to return |
Type | Description |
---|---|
Node object | The node at the specified index |