diff options
author | bptato <nincsnevem662@gmail.com> | 2023-07-17 18:02:27 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-07-17 18:02:27 +0200 |
commit | c1cbff13d526b2ea6ab57a0677cda5d6157422b2 (patch) | |
tree | d35fff28cb87589e40e5579b03bbce55667d8b6b /src/html | |
parent | ee721be496f849764b317c9c82f8eda5f417546a (diff) | |
download | chawan-c1cbff13d526b2ea6ab57a0677cda5d6157422b2.tar.gz |
htmlparser: fix regression
Fixed unintended variable shadowing introduced during refactoring
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/htmlparser.nim | 4 |
1 files changed, 2 insertions, 2 deletions
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], ("</head>", "</body>", "</html>", "</br>") => (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 ) |