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

LibWeb: Use the cached HTMLInputElement type within associated getters

This commit is contained in:
Timothy Flynn 2022-03-16 07:46:17 -04:00 committed by Andreas Kling
parent 95b084a08f
commit 1a99cc4a14
2 changed files with 7 additions and 26 deletions

View file

@ -53,7 +53,7 @@ public:
};
String type() const;
TypeAttributeState type_state() const;
TypeAttributeState type_state() const { return m_type; }
void set_type(String const&);
String default_value() const { return attribute(HTML::AttributeNames::value); }