private function _isAttrSelector($node)
    {
        $ret = false;

        if ($this->_op == CssParserFilterAttr::EQUAL_SELECTOR) {
            $ret = $this->_isEqualSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::NOT_EQUAL_SELECTOR) {
            $ret = $this->_isNotEqualSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::CONTAIN_SELECTOR) {
            $ret = $this->_isContainSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::CONTAIN_WORD_SELECTOR) {
            $ret = $this->_isContainWordSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::CONTAIN_PREFIX_SELECTOR) {
            $ret = $this->_isContainPrefixSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::START_WITH_SELECTOR) {
            $ret = $this->_isStartWithSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::END_WITH_SELECTOR) {
            $ret = $this->_isEndWithSelector($node);
        } else {
            $ret = $this->_hasAttribute($node);
        }

        return $ret;
    }
private function _isAttrSelector($node)
    {
        $ret = false;

        if ($this->_op == CssParserFilterAttr::EQUAL_SELECTOR) {
            $ret = $this->_isEqualSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::NOT_EQUAL_SELECTOR) {
            $ret = $this->_isNotEqualSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::CONTAIN_SELECTOR) {
            $ret = $this->_isContainSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::CONTAIN_WORD_SELECTOR) {
            $ret = $this->_isContainWordSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::CONTAIN_PREFIX_SELECTOR) {
            $ret = $this->_isContainPrefixSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::START_WITH_SELECTOR) {
            $ret = $this->_isStartWithSelector($node);
        } elseif ($this->_op == CssParserFilterAttr::END_WITH_SELECTOR) {
            $ret = $this->_isEndWithSelector($node);
        } else {
            $ret = $this->_hasAttribute($node);
        }

        return $ret;
    }
private function _isAttrSelector ( $ node ) { $ ret = false ; if ( $ this -> _op == CssParserFilterAttr :: EQUAL_SELECTOR ) { $ ret = $ this -> _isEqualSelector ( $ node ) ; } elseif ( $ this -> _op == CssParserFilterAttr :: NOT_EQUAL_SELECTOR ) { $ ret = $ this -> _isNotEqualSelector ( $ node ) ; } elseif ( $ this -> _op == CssParserFilterAttr :: CONTAIN_SELECTOR ) { $ ret = $ this -> _isContainSelector ( $ node ) ; } elseif ( $ this -> _op == CssParserFilterAttr :: CONTAIN_WORD_SELECTOR ) { $ ret = $ this -> _isContainWordSelector ( $ node ) ; } elseif ( $ this -> _op == CssParserFilterAttr :: CONTAIN_PREFIX_SELECTOR ) { $ ret = $ this -> _isContainPrefixSelector ( $ node ) ; } elseif ( $ this -> _op == CssParserFilterAttr :: START_WITH_SELECTOR ) { $ ret = $ this -> _isStartWithSelector ( $ node ) ; } elseif ( $ this -> _op == CssParserFilterAttr :: END_WITH_SELECTOR ) { $ ret = $ this -> _isEndWithSelector ( $ node ) ; } else { $ ret = $ this -> _hasAttribute ( $ node ) ; } return $ ret ; }
Is an attribute selector?

@param DOMElement $node DOMElement object

@return boolean
Is an attribute selector?