🐛 fix issue #26

This commit is contained in:
taoqf 2020-02-20 10:13:22 +08:00
parent faa24ed1c3
commit f5b163ef2a

View file

@ -351,7 +351,7 @@ export default class HTMLElement extends Node {
state[2] = matcher.advance(el as HTMLElement);
if (state[2]) {
if (matcher.matched) {
return el;
return el as HTMLElement;
}
}
}