From 60bde2dc9bb3a6e0276d624fe3490b891c3a7fc9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 12 Apr 2021 11:44:11 +0200 Subject: Parse attribute value without quotes correctly with whitespace --- src/HtmlParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3