
public interface NodeList extends Indexable
getElementsByTagName, getElementsByTagNameNS, Node.childNodes
, querySelectorAll, getElementsByClassName, etc.NodeList objects are collections of nodes returned by getElementsByTagName, getElementsByTagNameNS, Node.childNodes
, querySelectorAll, getElementsByClassName, etc.| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Reflects the number of elements in the NodeList.
|
Node |
item(int index)
Returns an item in the list by its index, or
null if out-of-bounds. |
int getLength()
Node item(int index)
null if out-of-bounds. Equivalent to nodeList[idx]Copyright © 2018. All rights reserved.