
public class JsHTMLCollection extends JsIndexable implements HTMLCollection, Indexable
| Modifier | Constructor and Description |
|---|---|
protected |
JsHTMLCollection() |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
The number of items in the collection.
|
JsNode |
item(int index)
Returns the specific node at the given zero-based
index into the list. |
JsNode |
namedItem(String name)
Returns the specific node whose ID or, as a fallback, name matches the string specified by
name. |
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringpublic final int getLength()
HTMLCollectiongetLength in interface HTMLCollectionpublic final JsNode item(int index)
HTMLCollectionindex into the list. Returns null if the index is out of range.item in interface HTMLCollectionpublic final JsNode namedItem(String name)
HTMLCollectionname. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name.namedItem in interface HTMLCollectionCopyright © 2016. All rights reserved.