/* * Copyright (c) 2020, the SerenityOS developers. * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Web::HTML { HTMLSelectElement::HTMLSelectElement(DOM::Document& document, QualifiedName qualified_name) : HTMLElement(document, move(qualified_name)) { } HTMLSelectElement::~HTMLSelectElement() { } void HTMLSelectElement::inserted() { set_form(first_ancestor_of_type()); } void HTMLSelectElement::removed_from(DOM::Node*) { set_form(nullptr); } }