1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibHTML: Add Element::name() convenience attribute getter

This commit is contained in:
Andreas Kling 2019-10-20 09:09:15 +02:00
parent d09a28856f
commit 202dfbd6cd

View file

@ -54,6 +54,8 @@ public:
LayoutNodeWithStyle* layout_node() { return static_cast<LayoutNodeWithStyle*>(Node::layout_node()); }
const LayoutNodeWithStyle* layout_node() const { return static_cast<const LayoutNodeWithStyle*>(Node::layout_node()); }
String name() const { return attribute("name"); }
private:
RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;