fix multiple selector for find() method. close #735

This commit is contained in:
Anton Lavrenov
2019-09-09 10:54:23 -05:00
parent c8aa734808
commit c3f4e53be5
4 changed files with 54 additions and 1333 deletions

View File

@@ -1569,7 +1569,7 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
if (this.hasName(sel.slice(1))) {
return true;
}
} else if (this.className === selector || this.nodeType === selector) {
} else if (this.className === sel || this.nodeType === sel) {
return true;
}
}