Skip to content

Kirby 4.5.0

$dom->query()

Executes an XPath query in the document

$dom->query(string $query, ?DOMNode $node = null): DOMNodeList|false

Parameters

Name Type Default Description
$query * string
$node DOMNode|null null Optional context node for relative queries

Return type

DOMNodeList|false

Parent class

Kirby\Toolkit\Dom