15 #ifndef SHAKA_EMBEDDED_JS_DOM_NODE_H_ 16 #define SHAKA_EMBEDDED_JS_DOM_NODE_H_ 60 DECLARE_TYPE_INFO(
Node);
98 virtual std::string
node_name()
const = 0;
123 std::vector<Member<Node>> children_;
141 #endif // SHAKA_EMBEDDED_JS_DOM_NODE_H_ RefPtr< Node > RemoveChild(RefPtr< Node > to_remove)
NodeType node_type() const
RefPtr< Node > first_child() const
RefPtr< Node > last_child() const
CONVERT_ENUM_AS_NUMBER(shaka::js::dom::Node, NodeType)
RefPtr< Document > document() const
bool is_char_data() const
bool IsShortLived() const override
virtual optional< std::string > TextContent() const =0
virtual optional< std::string > NodeValue() const =0
std::vector< RefPtr< Node > > child_nodes() const
RefPtr< Node > AppendChild(RefPtr< Node > new_child)
Node(NodeType type, RefPtr< Document > document)
RefPtr< Node > parent_node() const
virtual std::string node_name() const =0
void Trace(memory::HeapTracer *tracer) const override