1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

LibWeb: Add output element value

This commit is contained in:
Bastiaan van der Plaat 2023-12-09 09:08:01 +01:00 committed by Andreas Kling
parent f8509e2183
commit fef7571931
5 changed files with 84 additions and 4 deletions

View file

@ -29,6 +29,12 @@ public:
return output;
}
String default_value() const;
void set_default_value(String const&);
String value() const override;
void set_value(String const&);
// ^FormAssociatedElement
// https://html.spec.whatwg.org/multipage/forms.html#category-listed
virtual bool is_listed() const override { return true; }
@ -52,6 +58,8 @@ private:
HTMLOutputElement(DOM::Document&, DOM::QualifiedName);
virtual void initialize(JS::Realm&) override;
Optional<String> m_default_value_override {};
};
}