summaryrefslogtreecommitdiff
path: root/libs/litehtml/src/el_comment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/litehtml/src/el_comment.cpp')
-rw-r--r--libs/litehtml/src/el_comment.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/libs/litehtml/src/el_comment.cpp b/libs/litehtml/src/el_comment.cpp
new file mode 100644
index 0000000000..1ec934d046
--- /dev/null
+++ b/libs/litehtml/src/el_comment.cpp
@@ -0,0 +1,25 @@
+#include "html.h"
+#include "el_comment.h"
+
+litehtml::el_comment::el_comment(const std::shared_ptr<document>& doc) : element(doc)
+{
+ //m_skip = true;
+}
+
+bool litehtml::el_comment::is_comment() const
+{
+ return true;
+}
+
+void litehtml::el_comment::get_text( string& text )
+{
+ text += m_text;
+}
+
+void litehtml::el_comment::set_data( const char* data )
+{
+ if(data)
+ {
+ m_text += data;
+ }
+}