diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-05-01 22:32:11 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-05-15 17:36:01 +0300 |
commit | 8f9a80a9ac8f353ce2cdafa23f0e5163d30d5800 (patch) | |
tree | edb89ce300c831897cbe80b9e4e2000b0807acff /web/xhtml-fragment.hxx | |
parent | 038ba04cc0e5a6b933254813c34108d6e3fd4a38 (diff) |
Add support for description-type package manifest value
Diffstat (limited to 'web/xhtml-fragment.hxx')
-rw-r--r-- | web/xhtml-fragment.hxx | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/web/xhtml-fragment.hxx b/web/xhtml-fragment.hxx index 14b9a21..fd41967 100644 --- a/web/xhtml-fragment.hxx +++ b/web/xhtml-fragment.hxx @@ -22,16 +22,21 @@ namespace web class fragment { public: + bool truncated = false; + + public: fragment () = default; - // Parse string as XHTML document fragment. The fragment should be - // complete, in the sense that all elements should have closing tags. - // Elements and attributes are considered to be in the namespace of the - // entire XHTML document, so no namespace should be specified for them. - // Do not validate against XHTML vocabulary. Can throw xml::parsing - // exception. + // Parse string as an XHTML document fragment, truncating it if + // requested. The fragment should be complete, in the sense that all + // elements should have closing tags. Elements and attributes are + // considered to be in the namespace of the entire XHTML document, so no + // namespace should be specified for them. Do not validate against XHTML + // vocabulary. Can throw xml::parsing exception. // - fragment (const std::string& xhtml, const std::string& input_name); + fragment (const std::string& xhtml, + const std::string& input_name, + size_t length = 0); void operator() (xml::serializer&) const; |