summaryrefslogtreecommitdiff
path: root/libs/litehtml/src/el_script.cpp
blob: 4b598a137efc5bd3e92ec82565d83a4091a56906 (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
26
27
28
29
30
#include "html.h"
#include "el_script.h"
#include "document.h"


litehtml::el_script::el_script(const std::shared_ptr<document>& doc) : element(doc)
{

}

void litehtml::el_script::parse_attributes()
{
	//TODO: pass script text to document container
}

bool litehtml::el_script::appendChild(const ptr &el)
{
	el->get_text(m_text);
	return true;
}

litehtml::string_id litehtml::el_script::tag() const
{
	return _script_;
}

const char* litehtml::el_script::get_tagName() const
{
	return "script";
}