diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-07-03 03:03:32 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-07-03 03:03:32 +0200 |
commit | b7772a44e79445d9979a44c973223338560db292 (patch) | |
tree | e9ef289512f5fb7afd359b034320609f09c59f9e /src | |
parent | fd8f0358ceb43c423a4180e23fcd5b9f6201d829 (diff) |
Call tag end for void tags (such as br)
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; |