fix(selector): select by attribute independent of value and order

Closes #2513
This commit is contained in:
Tobias Bosch
2015-06-11 11:35:02 -07:00
parent 5bfcca2d5b
commit 9bad70be5e
2 changed files with 23 additions and 0 deletions

View File

@ -285,6 +285,11 @@ export class SelectorMatcher {
result;
var partialValuesMap = MapWrapper.get(this._attrValuePartialMap, attrName);
if (!StringWrapper.equals(attrValue, _EMPTY_ATTR_VALUE)) {
result = this._matchPartial(partialValuesMap, _EMPTY_ATTR_VALUE, cssSelector,
matchedCallback) ||
result;
}
result =
this._matchPartial(partialValuesMap, attrValue, cssSelector, matchedCallback) || result;
}