Type: Function


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

Gets the previous sibling of the given node which matches the given spec

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


  1. blueprint


    Type: Blueprint

    The blueprint in which to consider the nodes

  2. node


    Type: Node

    The node to start looking from

  3. spec


    Type: NodeSpec

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


Type: Node | NULL

The first sibling matching the spec