public function query($selector, \DOMNode $context = null)
    {
        $this->enableRestoreInternal(true);

        if ($this->selector === null) {
            $this->selector = new Selector($this);
        }

        $nodes = $this->selector->get($selector, $context);

        $this->raise($this->exceptionlevel);

        $this->enableRestoreInternal(false);

        return $nodes;
    }
public function query($selector, \DOMNode $context = null)
    {
        $this->enableRestoreInternal(true);

        if ($this->selector === null) {
            $this->selector = new Selector($this);
        }

        $nodes = $this->selector->get($selector, $context);

        $this->raise($this->exceptionlevel);

        $this->enableRestoreInternal(false);

        return $nodes;
    }
public function query ( $ selector , \ DOMNode $ context = null ) { $ this -> enableRestoreInternal ( true ) ; if ( $ this -> selector === null ) { $ this -> selector = new Selector ( $ this ) ; } $ nodes = $ this -> selector -> get ( $ selector , $ context ) ; $ this -> raise ( $ this -> exceptionlevel ) ; $ this -> enableRestoreInternal ( false ) ; return $ nodes ; }
Use query-selector like CSS, jQuery, querySelectorAll

@param string $selector
@param \DOMNode $context
@return \DOMNodeList
Use query - selector like CSS jQuery querySelectorAll