diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.h b/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.h index ec68ce04b7..3393faadf3 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.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: virtual void apply_presentational_hints(CSS::StyleProperties&) const override; + // https://www.w3.org/TR/html-aria/#el-caption + virtual FlyString default_role() const override { return DOM::ARIARoleNames::caption; } + private: HTMLTableCaptionElement(DOM::Document&, DOM::QualifiedName); }; |