src/Element.php
public function closest(string $selectors) {
		$collection = $this->css($selectors, "ancestor-or-self::");

		return $collection->item(count($collection) - 1);
	}
public function closest(string $selectors) {
		$collection = $this->css($selectors, "ancestor-or-self::");

		return $collection->item(count($collection) - 1);
	}
Returns the closest ancestor of the current element (or itself)
which matches the selectors.
@param string $selectors CSS selector(s)
@return Element|null