HTMLOptionElement.h 720 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <LibWeb/HTML/HTMLElement.h>
  9. namespace Web::HTML {
  10. class HTMLOptionElement final : public HTMLElement {
  11. public:
  12. using WrapperType = Bindings::HTMLOptionElementWrapper;
  13. HTMLOptionElement(DOM::Document&, DOM::QualifiedName);
  14. virtual ~HTMLOptionElement() override;
  15. private:
  16. // https://html.spec.whatwg.org/multipage/form-elements.html#concept-option-selectedness
  17. bool m_selected { false };
  18. // https://html.spec.whatwg.org/multipage/form-elements.html#concept-option-dirtiness
  19. bool m_dirty { false };
  20. };
  21. }