mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibWeb: Fix internal logic for recognizing non-abstract ARIA roles
This commit is contained in:
parent
af3d46dc06
commit
ce65457746
Notes:
github-actions[bot]
2024-12-18 15:25:50 +00:00
Author: https://github.com/sideshowbarker
Commit: ce65457746
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2964
Reviewed-by: https://github.com/AtkinsSJ ✅
7 changed files with 76 additions and 11 deletions
|
@ -28,7 +28,7 @@ Optional<Role> ARIAMixin::role_from_role_attribute_value() const
|
|||
auto role = role_from_string(role_name);
|
||||
if (!role.has_value())
|
||||
continue;
|
||||
if (is_non_abstract_role(*role))
|
||||
if (!is_abstract_role(*role))
|
||||
return *role;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue