LibWeb: Add the HTMLInputElement.type attribute

This makes React react to change events on text <input> elements. :^)
This commit is contained in:
Andreas Kling 2022-02-17 13:12:01 +01:00
commit 2660795bcf
Notes: sideshowbarker 2024-07-17 18:38:01 +09:00
3 changed files with 19 additions and 1 deletions

View file

@ -20,7 +20,9 @@ public:
virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
String type() const { return attribute(HTML::AttributeNames::type); }
String type() const;
void set_type(String const&);
String default_value() const { return attribute(HTML::AttributeNames::value); }
String name() const { return attribute(HTML::AttributeNames::name); }