private function _isContainPrefixSelector($node)
    {
        if ($node->hasAttribute($this->_attrName)) {
            $attr = $node->getAttribute($this->_attrName);
            $len = strlen($this->_value);
            if ($len > 0) {
                $pos = stripos($attr, $this->_value);
                return $pos === 0 && (strlen($attr) <= $len || $attr[$len] == "-");
            }
        }

        return false;
    }
private function _isContainPrefixSelector($node)
    {
        if ($node->hasAttribute($this->_attrName)) {
            $attr = $node->getAttribute($this->_attrName);
            $len = strlen($this->_value);
            if ($len > 0) {
                $pos = stripos($attr, $this->_value);
                return $pos === 0 && (strlen($attr) <= $len || $attr[$len] == "-");
            }
        }

        return false;
    }
private function _isContainPrefixSelector ( $ node ) { if ( $ node -> hasAttribute ( $ this -> _attrName ) ) { $ attr = $ node -> getAttribute ( $ this -> _attrName ) ; $ len = strlen ( $ this -> _value ) ; if ( $ len > 0 ) { $ pos = stripos ( $ attr , $ this -> _value ) ; return $ pos === 0 && ( strlen ( $ attr ) <= $ len || $ attr [ $ len ] == "-" ) ; } } return false ; }
Contain prefix selector.

Selects elements that have the specified attribute with a value either equal
to a given string or starting with that string followed by a hyphen (-).

@param DOMElement $node DOMElement object

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