diff options
Diffstat (limited to 'include/HtmlParser.h')
-rw-r--r-- | include/HtmlParser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/HtmlParser.h b/include/HtmlParser.h index b01a59e..a60e6d5 100644 --- a/include/HtmlParser.h +++ b/include/HtmlParser.h @@ -41,11 +41,13 @@ struct HtmlParser { int is_tag_void; int inside_script_tag; + int pre_tag_depth; size_t unclosed_tags_offset; HtmlStringView unclosed_tags[UNCLOSED_TAGS_SIZE]; }; +/* Note: HTML_PARSE_TAG_START is guaranteed to be called for a tag before HTML_PARSE_TAG_END */ void html_parser_init(HtmlParser *self, const char *html_source, size_t len, HtmlParseCallback parse_callback, void *userdata); void html_parser_deinit(HtmlParser *self); |