public function select($selector, $context = null)
    {
        // Set context to the current element if empty
        $context = $context ?: $this;

        return $this->getHTMLDocument()->selectElement($selector, $context);
    }
public function select($selector, $context = null)
    {
        // Set context to the current element if empty
        $context = $context ?: $this;

        return $this->getHTMLDocument()->selectElement($selector, $context);
    }
public function select ( $ selector , $ context = null ) { // Set context to the current element if empty $ context = $ context ? : $ this ; return $ this -> getHTMLDocument ( ) -> selectElement ( $ selector , $ context ) ; }
Selects nodes in the owner html document that match a given css selector.

@param string $selector The css selector to search for in the html document.
It does not support pseudo-* for the moment and only supports simple equality
attribute-wise. Can hold multiple selectors separated with comma.
@param mixed  $context  Can either be a DOMElement as the context of the search, or a css selector.
If the selector results in multiple DOMNodes, then the first is selected as the context.
It is NULL by default.

@return DOMNodeList|false
@throws InvalidArgumentException
Selects nodes in the owner html document that match a given css selector .