aboutsummaryrefslogtreecommitdiffstats
path: root/src/el_comment.cpp
blob: 1a29a5166292cef7bcc23ec51ec10fa9d2b96b12 (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
#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;
	}
}