private function _isContainSelector($node)
    {
        if ($node->hasAttribute($this->_attrName)) {
            $attr = $node->getAttribute($this->_attrName);
            $len = strlen($this->_value);
            if ($len > 0) {
                $pos = strpos($attr, $this->_value);
                return $pos !== false;
            }
        }

        return false;
    }
private function _isContainSelector($node)
    {
        if ($node->hasAttribute($this->_attrName)) {
            $attr = $node->getAttribute($this->_attrName);
            $len = strlen($this->_value);
            if ($len > 0) {
                $pos = strpos($attr, $this->_value);
                return $pos !== false;
            }
        }

        return false;
    }
private function _isContainSelector ( $ node ) { if ( $ node -> hasAttribute ( $ this -> _attrName ) ) { $ attr = $ node -> getAttribute ( $ this -> _attrName ) ; $ len = strlen ( $ this -> _value ) ; if ( $ len > 0 ) { $ pos = strpos ( $ attr , $ this -> _value ) ; return $ pos !== false ; } } return false ; }
Contain selector.

Selects elements that have the specified attribute with a value containing
the a given substring.

@param DOMElement $node DOMElement object

@link http://api.jquery.com/attribute-contains-selector/
@return boolean
Contain selector .