summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.h
blob: ef7c9aa923678fe0112aafae32e6cac5c2a7618a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright (c) 2020, The SerenityOS developers.
 * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibWeb/HTML/FormAssociatedElement.h>
#include <LibWeb/HTML/HTMLElement.h>

namespace Web::HTML {

class HTMLSelectElement final
    : public HTMLElement
    , public FormAssociatedElement {
public:
    using WrapperType = Bindings::HTMLSelectElementWrapper;

    HTMLSelectElement(DOM::Document&, QualifiedName);
    virtual ~HTMLSelectElement() override;

private:
    // ^DOM::Node
    virtual void inserted() override;
    virtual void removed_from(DOM::Node*) override;

    // ^HTML::FormAssociatedElement
    virtual HTMLElement& form_associated_element_to_html_element() override { return *this; }
};

}