findNextSibling

Type: Function

Deprecated!

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

Gets the next sibling of the given node which matches 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. node

    (Required)

    Type: Node

    The node to start looking from

  3. spec

    (Required)

    Type: NodeSpec

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

Returns

Type: Node | NULL

The first sibling matching the spec