diff options
author | DEC05EBA <dec05eba@protonmail.com> | 2020-01-04 20:03:46 +0100 |
---|---|---|
committer | DEC05EBA <dec05eba@protonmail.com> | 2020-01-04 20:03:46 +0100 |
commit | fd5527bade00b4692eedb14a801527ceeb342d7c (patch) | |
tree | 02f0def263f68f5271db932814e2bd6dce9d551f /include | |
parent | f0535cffe4e159e378ee8fe8201c0ec306d9f824 (diff) |
Call parse callback even for empty text/javascript. Makes tools like xpath easier
Diffstat (limited to 'include')
-rw-r--r-- | include/HtmlParser.h | 3 |
1 files changed, 2 insertions, 1 deletions
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]; |