findClosestAncestor

Type: Function

Deprecated!

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

Find the closest inclusive ancestor of node which match the given spec

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

Arguments

  1. node

    (Required)

    Type: Node

  2. spec

    (Required)

    Type: NodeSpec

Returns

Type: Node | NULL