phpQueryObject::isRoot PHP Method

isRoot() protected method

protected isRoot ( $node )
    protected function isRoot($node)
    {
        //		return $node instanceof DOMDOCUMENT || $node->tagName == 'html';
        return $node instanceof DOMDOCUMENT || $node instanceof DOMELEMENT && $node->tagName == 'html' || $this->root->isSameNode($node);
    }