findPreviousSiblings

Type: Function

Deprecated!

Use XPath/XQuery to do this. Refer to the examples page for an example on how to do this.

Return an array containing all previous siblings of the given node, optionally filtered by spec

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

Arguments

  1. node

    (Required)

    Type: Node

    The node from which to search

  2. spec

    (Required)

    Type: NodeSpec

    Node specification, as accepted by fontoxml-dom-utils' createNodeFilter.

    Default value

  3. isRecursive

    (Required)

    Type: Boolean

    Whether to continue the search under matching nodes Defaults to true, meaning all matches are returned.

    Default value

Returns

Type: Array<Node>