aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.clangd/index/HtmlParser.c.548BE05F5A5E23B4.idxbin0 -> 5996 bytes
-rw-r--r--.clangd/index/HtmlParser.h.C57D3D53811DE2F5.idxbin0 -> 2786 bytes
-rw-r--r--src/HtmlParser.c2
3 files changed, 2 insertions, 0 deletions
diff --git a/.clangd/index/HtmlParser.c.548BE05F5A5E23B4.idx b/.clangd/index/HtmlParser.c.548BE05F5A5E23B4.idx
new file mode 100644
index 0000000..2b2c836
--- /dev/null
+++ b/.clangd/index/HtmlParser.c.548BE05F5A5E23B4.idx
Binary files differ
diff --git a/.clangd/index/HtmlParser.h.C57D3D53811DE2F5.idx b/.clangd/index/HtmlParser.h.C57D3D53811DE2F5.idx
new file mode 100644
index 0000000..b6373d3
--- /dev/null
+++ b/.clangd/index/HtmlParser.h.C57D3D53811DE2F5.idx
Binary files differ
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);