71class HTMLElement:
public HTMLNode
76 virtual ~HTMLElement(
void );
78 HTMLElement(
const std::string& tag );
80 void append_attribute(
const std::string& name,
const std::string& value );
82 void append_child( HTMLNode* node );
84 HTMLElement* append_element(
const std::string& type );
88 virtual std::string print(
const std::string& indent =
"" );
91 std::string tag_name_;
92 std::list<std::pair<std::string, std::string>> attributes_;
93 std::list<HTMLNode*> children_;
A plain text node (cannot have children, text only).