aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-12 11:44:11 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-12 11:44:11 +0200
commit60bde2dc9bb3a6e0276d624fe3490b891c3a7fc9 (patch)
tree59b3a5c4b9bc0a279043659aefbf65a08603fc21 /src
parent32b65e91db5b01b6b6da5117789c9dc473fec138 (diff)
Parse attribute value without quotes correctly with whitespace
Diffstat (limited to 'src')
-rw-r--r--src/HtmlParser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HtmlParser.c b/src/HtmlParser.c
index f01a3af..9df3983 100644
--- a/src/HtmlParser.c
+++ b/src/HtmlParser.c
@@ -236,7 +236,7 @@ static void html_parser_parse_attribute_value(HtmlParser *self) {
self->attribute_value.data = self->source + self->offset;
for(;;) {
char c = html_parser_peek_char(self);
- if(!is_attribute_value_char(c) || c == '\0')
+ if(!is_attribute_value_char(c) || is_whitespace(c) || c == '\0')
break;
else
html_parser_advance_char(self);