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

LibWeb: Support HTMLFormElement.elements and HTMLFormElement.length

Note that we implement .elements as a HTMLCollection for now, instead of
the correct HTMLFormControlsCollection subclass. This covers most
use-cases already.

1% progression on ACID3. :^)
This commit is contained in:
Andreas Kling 2022-02-25 21:19:06 +01:00
parent fbee0490a3
commit fa17776a51
3 changed files with 51 additions and 0 deletions

View file

@ -29,6 +29,9 @@ public:
void add_associated_element(Badge<FormAssociatedElement>, HTMLElement&);
void remove_associated_element(Badge<FormAssociatedElement>, HTMLElement&);
NonnullRefPtr<DOM::HTMLCollection> elements() const;
unsigned length() const;
private:
bool m_firing_submission_events { false };