A predicate used while iterating DOM tree. Whose return value affects the flow of iteration.
Counts all immediate element children
Descend the given node (excluding itself) breadth-first. Child nodes of the
current node are pushed to stack before calling the match
predicate.
If match()
returns true
, the loop will break, returning the node at
that point.
Retrieves the first CData child of the given node.
Retrieves the first comment child of the given node.
Retrieves the first element child of the given node.
Retrieves the first processing instruction child of the given node.
Check if the given node is a white space text node
Looks up for something matching certain criteria, falling back to ancestors all the way to the document root. Starting from the given node.
The match
callback should determine whether a given node fulfills criteria.
If match()
returns a value that is not null
or undefined
, the loop will
return immediately, with the return value from match()
.
The node to start looking.
A callback function to determine if the node matches criteria.
Extra arguments to be passed to match
callback.
Looks up for something matching certain criteria, among siblings from
node
onward.
The match
callback should determine whether a given node fulfills criteria.
If match()
returns a value that is not null
or undefined
, the loop will
return immediately, with the return value from match()
.
The node to start looking.
A callback function to determine if the node matches criteria.
Extra arguments to be passed to match
callback.
Looks up for something matching certain criteria.
The next
callback should return the next node of interest. If next()
returns a falsy value, the loop breaks and returns null
.
The match
callback should determine whether a given node fulfills criteria.
If match()
returns a value that is not null
or undefined
, the loop will
return immediately, with the return value from match()
.
The node to start looking.
A callback function to determine if the node matches criteria.
A callback that returns the next node to be matched.
Extra arguments to be passed to match
callback.
Retrieves the next element sibling of the given node.
Remove all empty text nodes from descendants of the given node.
{@link String.trim} all descendants' text nodes.
Generated using TypeDoc
A predicate used while iterating DOM tree. See lookupThrough for more detail.