1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:58:12 +00:00

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?"
This commit is contained in:
Andreas Kling 2019-09-28 22:59:16 +02:00
parent a768724270
commit fb4702dd49
4 changed files with 8 additions and 1 deletions

View file

@ -10,6 +10,8 @@ public:
const String& data() const { return m_data; }
virtual String tag_name() const override { return "#text"; }
private:
String m_data;
};