summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLHRElement.h
diff options
context:
space:
mode:
authorJonah <jonahshafran@gmail.com>2022-11-28 17:58:13 -0600
committerSam Atkins <atkinssj@gmail.com>2023-01-07 10:51:53 +0000
commite63d9d4925936caf3dbd9594299ab30ab7ada706 (patch)
tree3f2a230652aa451d8893023364475f5cbde2696d /Userland/Libraries/LibWeb/HTML/HTMLHRElement.h
parent0a244b9c1f116e1f7247fe57a28181481c09e54f (diff)
downloadserenity-e63d9d4925936caf3dbd9594299ab30ab7ada706.zip
LibWeb: Add Support for the ARIA Element Properties
Element now supports getting and setting ARIA properties from JS and HTML.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLHRElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLHRElement.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHRElement.h b/Userland/Libraries/LibWeb/HTML/HTMLHRElement.h
index a9516b4231..4b13e4882e 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLHRElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLHRElement.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 HTMLHRElement final : public HTMLElement {
public:
virtual ~HTMLHRElement() override;
+ // https://www.w3.org/TR/html-aria/#el-hr
+ virtual FlyString default_role() const override { return DOM::ARIARoleNames::separator; }
+
private:
HTMLHRElement(DOM::Document&, DOM::QualifiedName);
};