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

LibWeb: Implement HTMLSelectElement.selectedIndex

This commit is contained in:
Andreas Kling 2022-03-20 16:13:23 +01:00
parent 5dc0855489
commit a606345576
4 changed files with 70 additions and 2 deletions

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2020, the SerenityOS developers.
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -16,6 +17,13 @@ public:
HTMLOptionElement(DOM::Document&, DOM::QualifiedName);
virtual ~HTMLOptionElement() override;
private:
// https://html.spec.whatwg.org/multipage/form-elements.html#concept-option-selectedness
bool m_selected { false };
// https://html.spec.whatwg.org/multipage/form-elements.html#concept-option-dirtiness
bool m_dirty { false };
};
}