diff options
author | bptato <nincsnevem662@gmail.com> | 2022-07-18 16:59:36 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-07-18 17:00:50 +0200 |
commit | 918964940ddbbef317168392bc5f5e193a7a96cd (patch) | |
tree | ae04a2264462dc5f35d65467ce838a3072a49b14 /src/html | |
parent | 19989f9f0a2845bd6a8fe21db3689f1cd91a8a5a (diff) | |
download | chawan-918964940ddbbef317168392bc5f5e193a7a96cd.tar.gz |
Fix yet another parser bug
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/htmlparser.nim | 3 |
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: |