mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
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:
parent
0a244b9c1f
commit
e63d9d4925
Notes:
sideshowbarker
2024-07-17 06:33:00 +09:00
Author: https://github.com/Epigenetic
Commit: e63d9d4925
Pull-request: https://github.com/SerenityOS/serenity/pull/16430
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/martinfalisse
57 changed files with 976 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/DOM/ARIARoleNames.h>
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
@ -16,6 +17,9 @@ class HTMLMenuElement final : public HTMLElement {
|
|||
public:
|
||||
virtual ~HTMLMenuElement() override;
|
||||
|
||||
// https://www.w3.org/TR/html-aria/#el-menu
|
||||
virtual FlyString default_role() const override { return DOM::ARIARoleNames::list; }
|
||||
|
||||
private:
|
||||
HTMLMenuElement(DOM::Document&, DOM::QualifiedName);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue