aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-19 03:29:08 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-19 03:29:08 +0200
commit63c974c5af66ca372ecf46799649e1e2b8a85c0f (patch)
treec068ba8cd862f7986a7165da296f4bd0f8888940 /src
parentfdfdf20d085a7c705477d878c11ed208577facb1 (diff)
Take into consideration < /html> and <br/ >
Diffstat (limited to 'src')
-rw-r--r--src/HtmlParser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HtmlParser.c b/src/HtmlParser.c
index 861168e..f01a3af 100644
--- a/src/HtmlParser.c
+++ b/src/HtmlParser.c
@@ -323,6 +323,7 @@ static void html_parser_parse_tag_start(HtmlParser *self) {
}
return;
} else if(c == '/') {
+ html_parser_skip_whitespace(self);
if(html_parser_peek_char(self) == '>') {
html_parser_advance_char(self);
if(tag_name_found) {
@@ -457,6 +458,7 @@ void html_parser_parse(HtmlParser *self) {
for(;;) {
char c = html_parser_next_char(self);
if(c == '<') {
+ html_parser_skip_whitespace(self);
if(html_parser_peek_char(self) == '/') {
html_parser_advance_char(self);
html_parser_parse_tag_end(self);