findTopMostNodes

Type: Function

Deprecated!

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

Find the topMost nodes from the inputted array by topologically sorting them and only returning the nodes under which all other nodes exist.

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

Arguments

  1. nodes

    (Required)

    Type: Array<FontoNode> | Array<Node>

Returns

Type: Array<FontoNode> | Array<Node>