 			return attr.indexOf(data2) > -1
 	false
 byAttrContainsValue.isIterator = false
+byAttrContainsValue.priority = ATTRS_PRIORITY
 byAttrContainsValue.toString = -> 'byAttrContainsValue'
 
 TYPE = /^#?[a-zA-Z0-9|\-:_]+/

			return attr.indexOf(data2) is 0
	false
byAttrStartsWithValue.isIterator = false
byAttrStartsWithValue.toString = -> 'byAttrStartsWithValue'

byAttrEndsWithValue = (node, data1, data2) ->

			break
		sum += query.length
	sum

module.exports.getSelectorPriority = (selector, beginQuery=0, endQuery=Infinity) ->
	sum = 0
	queries = getQueries selector, 0
	for query, i in queries
		if i < beginQuery
			continue
		if i >= endQuery
			break
		for func in query by 3
			sum += func.priority
	sum
