1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

LibWeb: Add missing upcalls in HTMLSelectElement

This commit is contained in:
Andreas Kling 2021-10-12 00:16:41 +02:00
parent 06e54ea916
commit 76ac1b2496

View file

@ -21,11 +21,13 @@ HTMLSelectElement::~HTMLSelectElement()
void HTMLSelectElement::inserted() void HTMLSelectElement::inserted()
{ {
HTMLElement::inserted();
set_form(first_ancestor_of_type<HTMLFormElement>()); set_form(first_ancestor_of_type<HTMLFormElement>());
} }
void HTMLSelectElement::removed_from(DOM::Node*) void HTMLSelectElement::removed_from(DOM::Node* old_parent)
{ {
HTMLElement::removed_from(old_parent);
set_form(nullptr); set_form(nullptr);
} }