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

LibWeb: Associate form elements with a form in parsing and dynamically

This makes it available for all form associated elements and not just
select and input elements. It also makes it more spec compliant,
especially around the form attribute.

The main thing missing is re-associating form elements with a form
attribute when the form attribute changes or an element with an ID
is inserted/removed or has its ID changed.
This commit is contained in:
Luke Wilde 2022-03-01 21:10:48 +00:00 committed by Andreas Kling
parent 29f9947ff9
commit 46c0d0f7ae
9 changed files with 140 additions and 40 deletions

View file

@ -101,10 +101,6 @@ public:
virtual bool is_labelable() const override { return type_state() != TypeAttributeState::Hidden; }
private:
// ^DOM::Node
virtual void inserted() override;
virtual void removed_from(Node*) override;
// ^DOM::EventTarget
virtual void did_receive_focus() override;
virtual void run_activation_behavior() override;