findNextInDocumentOrder

Type: Function

Deprecated!

Use XPath instead

Returns the next node matching spec, from the position specified by container and offset, traversing the entire DOM in document order (or reverse document order if searchBackwards is true). If visitParentsAfterChildren is true, parent nodes are considered after their children instead of before.

Refer to domQuery for more information on how to import and use this function.

Arguments

  1. container

    (Required)

    Type: Node

    The node to look under

  2. offset

    (Required)

    Type: Number

    The position to start at

  3. spec

    (Required)

    Type: NodeSpec

  4. searchBackwards

    (Required)

    Type: Boolean

    Default value

  5. visitParentsAfterChildren

    (Required)

    Type: Boolean

    Default value

Returns

Type: Array<Node>