Open taylorhughes opened 9 years ago
<div class="foo-bar foo">
zest('.foo') will not match the above element because the code examines the first matching class ("foo-bar") and sees that it doesn't match, and the comparison stops there. The fix is to examine all the matches, not just the first match, in ~= here:
https://github.com/chjj/zest/blob/master/lib/zest.js#L471
Fixed in domino (which includes zest) in https://github.com/fgnass/domino/commit/614565c7db859557852483271abb8afec17a792e
<div class="foo-bar foo">
zest('.foo') will not match the above element because the code examines the first matching class ("foo-bar") and sees that it doesn't match, and the comparison stops there. The fix is to examine all the matches, not just the first match, in ~= here:
https://github.com/chjj/zest/blob/master/lib/zest.js#L471