mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Correct default ARIA Roles for few tags
This commit is contained in:
Notes:
github-actions[bot]
2024-10-27 09:22:16 +00:00
Author: https://github.com/Simek 🔰 Commit: https://github.com/LadybirdBrowser/ladybird/commit/c9c67a6f246 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1984 Reviewed-by: https://github.com/sideshowbarker
@@ -2311,7 +2311,7 @@ Optional<ARIA::Role> HTMLInputElement::default_role() const
|
||||
return ARIA::Role::combobox;
|
||||
// https://www.w3.org/TR/html-aria/#el-input-search
|
||||
if (type_state() == TypeAttributeState::Search && !has_attribute(AttributeNames::list))
|
||||
return ARIA::Role::textbox;
|
||||
return ARIA::Role::searchbox;
|
||||
// https://www.w3.org/TR/html-aria/#el-input-submit
|
||||
if (type_state() == TypeAttributeState::SubmitButton)
|
||||
return ARIA::Role::button;
|
||||
|
||||
Reference in New Issue
Block a user