2020-08-01 05:07:00 +03:00
|
|
|
/*
|
2021-04-28 23:46:44 +03:00
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
2021-04-20 23:52:55 +03:00
|
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
2020-08-01 05:07:00 +03:00
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-01 05:07:00 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-04-20 23:52:55 +03:00
|
|
|
#include <LibWeb/HTML/FormAssociatedElement.h>
|
2020-08-01 05:07:00 +03:00
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
2021-04-20 23:52:55 +03:00
|
|
|
class HTMLSelectElement final
|
|
|
|
: public HTMLElement
|
|
|
|
, public FormAssociatedElement {
|
2020-08-01 05:07:00 +03:00
|
|
|
public:
|
|
|
|
using WrapperType = Bindings::HTMLSelectElementWrapper;
|
|
|
|
|
2021-02-07 13:20:15 +03:00
|
|
|
HTMLSelectElement(DOM::Document&, QualifiedName);
|
2020-08-01 05:07:00 +03:00
|
|
|
virtual ~HTMLSelectElement() override;
|
2021-04-20 23:52:55 +03:00
|
|
|
|
|
|
|
private:
|
2021-04-21 00:34:49 +03:00
|
|
|
// ^DOM::Node
|
2021-04-20 23:52:55 +03:00
|
|
|
virtual void inserted() override;
|
|
|
|
virtual void removed_from(DOM::Node*) override;
|
2021-04-21 00:34:49 +03:00
|
|
|
|
|
|
|
// ^HTML::FormAssociatedElement
|
|
|
|
virtual HTMLElement& form_associated_element_to_html_element() override { return *this; }
|
2020-08-01 05:07:00 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|