summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLMenuElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLMenuElement.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.h b/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.h
index 7ac8e896d9..fffd674965 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.h
@@ -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);
};