mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
LibWeb: Implement HTMLSelectElement.selectedIndex
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a606345576
@@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user