Returns the current HierarchyNodeId.

This is determined by the value of the currentHierarchyNodeId option passed to evaluateXPath or similar. Note that this function may return an empty sequence in some cases. One of these cases is when evaluating this function when in the context of a Hook or a mutation. In that case, all hierarchy nodes are 'the current one'.

Was this page helpful?