public function querySelectorAll($selector)
    {
        $converter = new CssSelectorConverter();

        $xpathQuery = $converter->toXPath($selector);

        $results = $this->xpath->query($xpathQuery);

        if (!$results->item(0)) {
            return [];
        }

        $return = new NodeCollection();

        for ($i = 0; $i < $results->length; $i++) {
            $node = new Node($results->item($i));
            $return->append($node);
        }

        return $return;
    }