mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
LibWeb: Use [Reflect] for Element.id and Element.className :^)
This commit is contained in:
parent
8f31331e68
commit
d1fdc1a2cf
2 changed files with 2 additions and 8 deletions
|
@ -84,12 +84,6 @@ public:
|
|||
String inner_html() const;
|
||||
void set_inner_html(StringView);
|
||||
|
||||
String id() const { return attribute(HTML::AttributeNames::id); }
|
||||
void set_id(const String& value) { set_attribute(HTML::AttributeNames::id, value); }
|
||||
|
||||
String class_name() const { return attribute(HTML::AttributeNames::class_); }
|
||||
void set_class_name(const String& value) { set_attribute(HTML::AttributeNames::class_, value); }
|
||||
|
||||
protected:
|
||||
RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue