HTMLSelectElement.h 797 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <LibWeb/HTML/FormAssociatedElement.h>
  9. #include <LibWeb/HTML/HTMLElement.h>
  10. namespace Web::HTML {
  11. class HTMLSelectElement final
  12. : public HTMLElement
  13. , public FormAssociatedElement {
  14. public:
  15. using WrapperType = Bindings::HTMLSelectElementWrapper;
  16. HTMLSelectElement(DOM::Document&, QualifiedName);
  17. virtual ~HTMLSelectElement() override;
  18. private:
  19. // ^DOM::Node
  20. virtual void inserted() override;
  21. virtual void removed_from(DOM::Node*) override;
  22. // ^HTML::FormAssociatedElement
  23. virtual HTMLElement& form_associated_element_to_html_element() override { return *this; }
  24. };
  25. }