/** * Runs a css query against the wrapped dom object. Internally the css will translate to xpath * * @link http://php.net/manual/en/domxpath.query.php * * @param string $query the css query * @param \DOMNode|null $node the context node for the query, leave it null to query the root * @return DomNodeList */ public function cssQuery($query, $node = null) { return $this->getXpath()->query(Css::toXPath($query), $node); }