diff options
Diffstat (limited to 'src/html/parser.nim')
-rw-r--r-- | src/html/parser.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/parser.nim b/src/html/parser.nim index ca505135..f898e329 100644 --- a/src/html/parser.nim +++ b/src/html/parser.nim @@ -369,7 +369,7 @@ proc processDocumentPart(state: var HTMLParseState, buf: string) = if state.in_comment: state.commentNode.data &= c else: - if not c.isWhitespace() and (state.textNode == nil or state.textNode.parentElement.tagType == TAG_HTML): + if not c.isWhitespace() and state.elementNode.tagType == TAG_HTML: state.textNode = nil processDocumentBody(state) processDocumentText(state) |