diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/HtmlParser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HtmlParser.c b/src/HtmlParser.c index 2e52555..81104b7 100644 --- a/src/HtmlParser.c +++ b/src/HtmlParser.c @@ -281,7 +281,7 @@ static void html_parser_parse_tag_start(HtmlParser *self) { for(;;) { char c = html_parser_next_char(self); if(c == '>') { - if(self->is_tag_void) + if(tag_name_found && self->is_tag_void) self->parse_callback(self, HTML_PARSE_TAG_END, self->callback_userdata); self->is_tag_void = 0; |