aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDEC05EBA <dec05eba@protonmail.com>2019-12-31 10:25:09 +0100
committerDEC05EBA <dec05eba@protonmail.com>2019-12-31 10:25:09 +0100
commit0f8f6ffe2e6cf6a9210da489a030b25a1ef307a3 (patch)
tree9af6b56bc22ecaf9b32624181d67d3c6b158f8dc /src
parent83ab639826e9d52ff92f6442bc4578d60444f5f4 (diff)
Fix bug where end tag can be reported for a broken void tag
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 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;