mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 18:45:07 +00:00

This is analogous to the DOM's Node.tagName and makes it easy to ask "hey, what kinda thing is this Node?"
17 lines
322 B
C++
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;
|
|
};
|