aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);