summaryrefslogtreecommitdiff
path: root/libs/litehtml/src/el_comment.cpp
blob: 1ec934d046a36d12d6c1eb690de32784fab8a8f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
	}
}