mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00: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:
@@ -6,6 +6,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/DOM/ARIARoleNames.h>
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
@@ -16,6 +17,9 @@ class HTMLSpanElement final : public HTMLElement {
|
||||
public:
|
||||
virtual ~HTMLSpanElement() override;
|
||||
|
||||
// https://www.w3.org/TR/html-aria/#el-span
|
||||
virtual FlyString default_role() const override { return DOM::ARIARoleNames::generic; }
|
||||
|
||||
private:
|
||||
HTMLSpanElement(DOM::Document&, DOM::QualifiedName);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user