compare Node Positions
Type: Function
Deprecated!
Use XPath instead.
Compares the positions of the given nodes in dom order, with ancestors ordered before their descendants.
Refer to blueprintQuery for more information on how to import and use this function.
Arguments
Returns
Type: Number
Returns 0 if the nodes are equal, -1 if the first node precedes the second, and 1 otherwise.