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:
parent
f8509e2183
commit
fef7571931
5 changed files with 84 additions and 4 deletions
|
@ -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 {};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue