aboutsummaryrefslogtreecommitdiffstats
path: root/src/html
diff options
context:
space:
mode:
Diffstat (limited to 'src/html')
-rw-r--r--src/html/htmlparser.nim4
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
)