mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibWeb: Implement HTMLOptionElement.selected
This commit is contained in:
parent
a606345576
commit
80ed2ab557
3 changed files with 52 additions and 0 deletions
|
@ -18,7 +18,17 @@ public:
|
|||
HTMLOptionElement(DOM::Document&, DOM::QualifiedName);
|
||||
virtual ~HTMLOptionElement() override;
|
||||
|
||||
bool selected() const { return m_selected; }
|
||||
void set_selected(bool);
|
||||
|
||||
private:
|
||||
friend class HTMLSelectElement;
|
||||
|
||||
void parse_attribute(FlyString const& name, String const& value) override;
|
||||
void did_remove_attribute(FlyString const& name) override;
|
||||
|
||||
void ask_for_a_reset();
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#concept-option-selectedness
|
||||
bool m_selected { false };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue