diff options
author | Linus Groh <mail@linusgroh.de> | 2023-01-28 22:23:16 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-29 00:02:55 +0000 |
commit | 8556d472400605d23d326816f497f4164b620b1d (patch) | |
tree | 424375c6ac5d6c6408540535f890132a0792aea3 /Userland/Libraries/LibWeb/HTML/HTMLFormElement.h | |
parent | 8414734a2dcc57813bf27d596fc7abc32d7ab308 (diff) | |
download | serenity-8556d472400605d23d326816f497f4164b620b1d.zip |
LibWeb: Move ARIA-related code into the Web::ARIA namespace
ARIA has its own spec and is not part of the DOM spec, which is what the
Web::DOM namespace is for (https://www.w3.org/TR/wai-aria-1.2/).
This allows us to stay closer to the spec with function names and don't
have to add the word "ARIA" to identifiers constantly - the namespace
now provides that clarity.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLFormElement.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLFormElement.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h index de93f3629d..3673ba8038 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h @@ -6,7 +6,7 @@ #pragma once -#include <LibWeb/DOM/ARIARoles.h> +#include <LibWeb/ARIA/Roles.h> #include <LibWeb/HTML/HTMLElement.h> #include <LibWeb/HTML/HTMLInputElement.h> @@ -38,7 +38,7 @@ public: unsigned length() const; // https://www.w3.org/TR/html-aria/#el-form - virtual Optional<DOM::ARIARoles::Role> default_role() const override { return DOM::ARIARoles::Role::form; } + virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::form; } private: HTMLFormElement(DOM::Document&, DOM::QualifiedName); |