1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 16:15:10 +00:00

LibWeb: Register FormAssociatedElement with their owner form

This will eventually allow us to implement HTMLFormControlsCollection.
This commit is contained in:
Andreas Kling 2021-04-20 23:34:49 +02:00
parent e454e1a45d
commit 78733417a4
6 changed files with 32 additions and 2 deletions

View file

@ -57,9 +57,13 @@ public:
void did_click_button(Badge<Layout::ButtonBox>);
private:
// ^DOM::Node
virtual void inserted() override;
virtual void removed_from(Node*) override;
// ^HTML::FormAssociatedElement
virtual HTMLElement& form_associated_element_to_html_element() override { return *this; }
void create_shadow_tree_if_needed();
RefPtr<DOM::Text> m_text_node;