1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 18:45:07 +00:00
serenity/Libraries/LibHTML/DOM/Text.h
Andreas Kling fb4702dd49 LibHTML: Add virtual Node::tag_name()
This is analogous to the DOM's Node.tagName and makes it easy to ask
"hey, what kinda thing is this Node?"
2019-09-28 22:59:16 +02:00

17 lines
322 B
C++

#pragma once
#include <AK/String.h>
#include <LibHTML/DOM/Node.h>
class Text final : public Node {
public:
explicit Text(const String&);
virtual ~Text() override;
const String& data() const { return m_data; }
virtual String tag_name() const override { return "#text"; }
private:
String m_data;
};