mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
LibWeb: Register FormAssociatedElement with their owner form
This will eventually allow us to implement HTMLFormControlsCollection.
This commit is contained in:
@@ -46,8 +46,13 @@ public:
|
||||
// NOTE: This is for the JS bindings. Use submit_form instead.
|
||||
void submit();
|
||||
|
||||
void add_associated_element(Badge<FormAssociatedElement>, HTMLElement&);
|
||||
void remove_associated_element(Badge<FormAssociatedElement>, HTMLElement&);
|
||||
|
||||
private:
|
||||
bool m_firing_submission_events { false };
|
||||
|
||||
Vector<WeakPtr<HTMLElement>> m_associated_elements;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user