DOM::HTMLCollection Class Reference
An HTMLCollection
is a list of nodes.
More...
#include <html_misc.h>
Public Member Functions | |
HTMLCollection (const HTMLCollection &other) | |
HTMLCollection & | operator= (const HTMLCollection &other) |
unsigned long | length () const |
This attribute specifies the length or size of the list. | |
Node | item (unsigned long index) const |
This method retrieves a node specified by ordinal index. | |
Node | namedItem (const DOMString &name) const |
This method retrieves a Node using a name. | |
Node | base () const |
HTMLCollectionImpl * | handle () const |
bool | isNull () const |
Node | firstItem () const |
Node | nextItem () const |
Node | nextNamedItem (const DOMString &name) const |
Protected Member Functions | |
HTMLCollection (NodeImpl *base, int type) | |
Protected Attributes | |
HTMLCollectionImpl * | impl |
Friends | |
class | HTMLDocument |
class | HTMLSelectElement |
class | HTMLImageElement |
class | HTMLMapElement |
class | HTMLTableElement |
class | HTMLTableRowElement |
class | HTMLTableSectionElement |
class | HTMLElement |
Detailed Description
An HTMLCollection
is a list of nodes.
An individual node may be accessed by either ordinal index or the node's name
or id
attributes. Note: Collections in the HTML DOM are assumed to be live meaning that they are automatically updated when the underlying document is changed.
Definition at line 126 of file html_misc.h.
Member Function Documentation
|
This attribute specifies the length or size of the list.
|
|
This method retrieves a node specified by ordinal index. Nodes are numbered in tree order (depth-first traversal order).
|
|
This method retrieves a
It first searches for a
|
The documentation for this class was generated from the following file: