From 918964940ddbbef317168392bc5f5e193a7a96cd Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 18 Jul 2022 16:59:36 +0200 Subject: Fix yet another parser bug --- src/html/htmlparser.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/html/htmlparser.nim') diff --git a/src/html/htmlparser.nim b/src/html/htmlparser.nim index 92e264ff..3911578b 100644 --- a/src/html/htmlparser.nim +++ b/src/html/htmlparser.nim @@ -299,7 +299,6 @@ template insert_character_impl(parser: var HTML5Parser, data: typed) = location.inside.lastChild else: location.before.previousSibling - assert location.before == nil if insertNode != nil and insertNode.nodeType == TEXT_NODE: dom.Text(insertNode).data &= data else: @@ -1563,7 +1562,7 @@ proc processInHTMLContent(parser: var HTML5Parser, token: Token, insertionMode = parse_error parser.fosterParenting = true parser.reconstructActiveFormatting() - parser.insertCharacter(token.c) + parser.insertCharacter(parser.pendingTableChars) parser.framesetOk = false parser.fosterParenting = false else: -- cgit 1.4.1-2-gfad0