mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-05 08:31:51 +00:00
LibWeb: Correct default ARIA Roles for few tags
This commit is contained in:
parent
551b72b018
commit
c9c67a6f24
Notes:
github-actions[bot]
2024-10-27 09:22:16 +00:00
Author: https://github.com/Simek 🔰
Commit: c9c67a6f24
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1984
Reviewed-by: https://github.com/sideshowbarker
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue