From bb02304965095879bafe393108855ee10278b0a6 Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 24 Jan 2022 15:56:46 +0100 Subject: Fix head parsing --- src/html/parser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit 1.4.1-2-gfad0 lue='devel' selected='selected'>devel This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log tree commit diff stats
path: root/compiler/nimrod.nim
blob: e4a9d882758826fb7a4c7a2c336f9a1a1ce5f0c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89