mirror of
https://github.com/danbulant/node-html-parser
synced 2026-05-19 04:18:52 +00:00
🐛 fix issue #26
This commit is contained in:
parent
faa24ed1c3
commit
f5b163ef2a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue