diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-18 12:13:54 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-18 12:13:54 +0300 |
commit | 705c4d24c9c61edffc82864bf9c24384dc29a8d7 (patch) | |
tree | 4d21f87671db36b99402da3221d45b64c257c1fe /libs/litehtml/src/el_title.cpp | |
parent | 5784fc3a62b9136c6690ed45ec7b505f35512e08 (diff) |
litehtml - lightweight html renderer
Diffstat (limited to 'libs/litehtml/src/el_title.cpp')
-rw-r--r-- | libs/litehtml/src/el_title.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/litehtml/src/el_title.cpp b/libs/litehtml/src/el_title.cpp new file mode 100644 index 0000000000..f0e42311b4 --- /dev/null +++ b/libs/litehtml/src/el_title.cpp @@ -0,0 +1,16 @@ +#include "html.h" +#include "el_title.h" +#include "document.h" + +litehtml::el_title::el_title(const std::shared_ptr<document>& doc) : html_tag(doc) +{ + +} + +void litehtml::el_title::parse_attributes() +{ + string text; + get_text(text); + get_document()->container()->set_caption(text.c_str()); +} + |