about summary refs log tree commit diff stats
path: root/src/html/htmlparser.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/htmlparser.nim')
-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: