summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.h b/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.h
index 433a50b1c0..272d6af62a 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.h
@@ -6,6 +6,7 @@
#pragma once
+#include <LibWeb/DOM/ARIARoleNames.h>
#include <LibWeb/HTML/HTMLElement.h>
namespace Web::HTML {
@@ -18,6 +19,9 @@ public:
bool should_use_body_background_properties() const;
+ // https://www.w3.org/TR/html-aria/#el-html
+ virtual FlyString default_role() const override { return DOM::ARIARoleNames::document; }
+
private:
HTMLHtmlElement(DOM::Document&, DOM::QualifiedName);