about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-07-18 16:59:36 +0200
committerbptato <nincsnevem662@gmail.com>2022-07-18 17:00:50 +0200
commit918964940ddbbef317168392bc5f5e193a7a96cd (patch)
treeae04a2264462dc5f35d65467ce838a3072a49b14 /src/html
parent19989f9f0a2845bd6a8fe21db3689f1cd91a8a5a (diff)
downloadchawan-918964940ddbbef317168392bc5f5e193a7a96cd.tar.gz
Fix yet another parser bug
Diffstat (limited to 'src/html')
-rw-r--r--src/html/htmlparser.nim3
1 files changed, 1 insertions, 2 deletions
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: