From f5b163ef2ae7e645309312c32dfd27f302ff6584 Mon Sep 17 00:00:00 2001 From: taoqf Date: Thu, 20 Feb 2020 10:13:22 +0800 Subject: [PATCH] :bug: fix issue #26 --- src/nodes/html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodes/html.ts b/src/nodes/html.ts index de909a4..bd1955f 100644 --- a/src/nodes/html.ts +++ b/src/nodes/html.ts @@ -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; } } }