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

LibWeb: Add fieldset elements property

This commit is contained in:
Bastiaan van der Plaat 2023-12-10 10:42:41 +01:00 committed by Tim Flynn
parent 0fe192dfd9
commit ea04a86715
6 changed files with 66 additions and 1 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include <LibWeb/ARIA/Roles.h>
#include <LibWeb/DOM/HTMLCollection.h>
#include <LibWeb/HTML/FormAssociatedElement.h>
#include <LibWeb/HTML/HTMLElement.h>
@ -30,6 +31,8 @@ public:
bool is_disabled() const;
JS::GCPtr<DOM::HTMLCollection> const& elements();
// ^FormAssociatedElement
// https://html.spec.whatwg.org/multipage/forms.html#category-listed
virtual bool is_listed() const override { return true; }
@ -43,6 +46,9 @@ private:
HTMLFieldSetElement(DOM::Document&, DOM::QualifiedName);
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;
JS::GCPtr<DOM::HTMLCollection> m_elements;
};
}