From c1cbff13d526b2ea6ab57a0677cda5d6157422b2 Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 17 Jul 2023 18:02:27 +0200 Subject: htmlparser: fix regression Fixed unintended variable shadowing introduced during refactoring --- src/html/htmlparser.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/html/htmlparser.nim') diff --git a/src/html/htmlparser.nim b/src/html/htmlparser.nim index 727ff804..08e30257 100644 --- a/src/html/htmlparser.nim +++ b/src/html/htmlparser.nim @@ -1399,8 +1399,8 @@ proc processInHTMLContent[Handle](parser: var HTML5Parser[Handle], ("", "", "", "
") => (block: anything_else) TokenType.END_TAG => (block: parse_error UNEXPECTED_END_TAG) _ => (block: - let token = Token(t: START_TAG, tagtype: TAG_HEAD) - parser.head = some(parser.insertHTMLElement(token)) + let head = Token(t: START_TAG, tagtype: TAG_HEAD) + parser.head = some(parser.insertHTMLElement(head)) parser.insertionMode = IN_HEAD reprocess token ) -- cgit 1.4.1-2-gfad0