2020-08-01 03:05:43 +01:00
|
|
|
/*
|
2021-04-28 22:46:44 +02:00
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
2022-03-20 16:13:23 +01:00
|
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
2020-08-01 03:05:43 +01:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-01 03:05:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
|
|
|
class HTMLOptionElement final : public HTMLElement {
|
|
|
|
public:
|
|
|
|
using WrapperType = Bindings::HTMLOptionElementWrapper;
|
|
|
|
|
2022-02-18 21:00:52 +01:00
|
|
|
HTMLOptionElement(DOM::Document&, DOM::QualifiedName);
|
2020-08-01 03:05:43 +01:00
|
|
|
virtual ~HTMLOptionElement() override;
|
2022-03-20 16:13:23 +01:00
|
|
|
|
|
|
|
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 };
|
2020-08-01 03:05:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|