private function _isContainWordSelector($node)
    {
        if ($node->hasAttribute($this->_attrName)) {
            $items = explode(" ", trim($node->getAttribute($this->_attrName)));
            foreach ($items as $item) {
                if (preg_match("/^\w+$/", $item) && $this->_value == $item) {
                    return true;
                }
            }
        }

        return false;
    }
private function _isContainWordSelector($node)
    {
        if ($node->hasAttribute($this->_attrName)) {
            $items = explode(" ", trim($node->getAttribute($this->_attrName)));
            foreach ($items as $item) {
                if (preg_match("/^\w+$/", $item) && $this->_value == $item) {
                    return true;
                }
            }
        }

        return false;
    }
private function _isContainWordSelector ( $ node ) { if ( $ node -> hasAttribute ( $ this -> _attrName ) ) { $ items = explode ( " " , trim ( $ node -> getAttribute ( $ this -> _attrName ) ) ) ; foreach ( $ items as $ item ) { if ( preg_match ( "/^\w+$/" , $ item ) && $ this -> _value == $ item ) { return true ; } } } return false ; }
Contain word selector.

Selects elements that have the specified attribute with a value containing a
given word, delimited by spaces.

@param DOMElement $node DOMElement object

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