Missing 'typeof' operator
krmgns opened this issue · 0 comments
krmgns commented
I think there should be typeof
operator here selector == 'string'
.
if (doc.getElementsByClassName && selector == 'string' && (m = selector.match(classOnly))) {
...
// to
if (doc.getElementsByClassName && typeof selector == 'string' && (m = selector.match(classOnly))) {
Source: https://github.com/ded/qwery/blob/master/qwery.js#L81