diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/HtmlParser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/HtmlParser.c b/src/HtmlParser.c index 287f322..e0b5599 100644 --- a/src/HtmlParser.c +++ b/src/HtmlParser.c @@ -412,6 +412,11 @@ static int html_parser_parse_tag_start(HtmlParser *self) { res = self->parse_callback(self, HTML_PARSE_TAG_START, self->callback_userdata); if(res != 0) return res; + if(self->is_tag_void) { + res = self->parse_callback(self, HTML_PARSE_TAG_END, self->callback_userdata); + if(res != 0) + return res; + } } } else if(c == '\0') { return 0; |