From fd5527bade00b4692eedb14a801527ceeb342d7c Mon Sep 17 00:00:00 2001 From: DEC05EBA Date: Sat, 4 Jan 2020 20:03:46 +0100 Subject: Call parse callback even for empty text/javascript. Makes tools like xpath easier --- include/HtmlParser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/HtmlParser.h b/include/HtmlParser.h index a60e6d5..fc3ff3a 100644 --- a/include/HtmlParser.h +++ b/include/HtmlParser.h @@ -38,10 +38,11 @@ struct HtmlParser { HtmlStringView attribute_key; HtmlStringView attribute_value; HtmlStringView text; + /* Only used when parse_type is HTML_PARSE_TEXT */ + HtmlStringView text_stripped; int is_tag_void; int inside_script_tag; - int pre_tag_depth; size_t unclosed_tags_offset; HtmlStringView unclosed_tags[UNCLOSED_TAGS_SIZE]; -- cgit v1.2.3