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

LibWeb: Implement HTMLFormElement::reset

This patch sets up the necessary infrastructure for implementing reset
algorithms for form-associated controls.
This commit is contained in:
Srikavin Ramkumar 2022-12-22 19:32:20 -05:00 committed by Andreas Kling
parent 2376385f0c
commit 7cc6ffe5b7
4 changed files with 51 additions and 0 deletions

View file

@ -65,6 +65,9 @@ public:
virtual HTMLElement& form_associated_element_to_html_element() = 0;
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-form-reset-control
virtual void reset_algorithm() {};
protected:
FormAssociatedElement() = default;
virtual ~FormAssociatedElement() = default;