new ElementIterator<T>(node, type, nodeTypeLimit?): ElementIterator<T>
Create an iterator with type specified
The nodeTypeLimit is used to limit which kind of nodes will be returned.
It limits the returned result by an instanceof call.
The default value is Element ,
which means only elements will be returned (text nodes will not).
Consider specifying Object if text nodes need to be returned as well as elements.
Specify Component will only return components.
An iterator for node tree traversal
This iterator is convenient but seems a little slower.