findDescendants

Type: Function

Deprecated!

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

Returns the non-inclusive descendants of the given node matching the given spec.

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

Arguments

  1. blueprint

    (Required)

    Type: Blueprint

    The blueprint in which to consider the nodes

  2. parentNode

    (Required)

    Type: Node

    The parent node under which to search

  3. spec

    (Required)

    Type: NodeSpec

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

  4. isRecursive

    (Optional)

    Type: Boolean

    Whether to continue the search under matching nodes Defaults to false, meaning only top-level matches are returned.

Returns

Type: Array<Node>

The matching descendants of parentNode