LibWeb: Add Support for the ARIA Element Properties

Element now supports getting and setting ARIA properties from
JS and HTML.
This commit is contained in:
Jonah 2022-11-28 17:58:13 -06:00 committed by Sam Atkins
commit e63d9d4925
Notes: sideshowbarker 2024-07-17 06:33:00 +09:00
57 changed files with 976 additions and 1 deletions

View file

@ -6,6 +6,7 @@
#pragma once
#include <LibWeb/DOM/ARIARoleNames.h>
#include <LibWeb/HTML/FormAssociatedElement.h>
#include <LibWeb/HTML/HTMLElement.h>
@ -35,6 +36,8 @@ public:
// https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize
virtual bool is_auto_capitalize_inheriting() const override { return true; }
virtual FlyString default_role() const override { return DOM::ARIARoleNames::group; }
private:
HTMLFieldSetElement(DOM::Document&, DOM::QualifiedName);
};