mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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
|
@ -173,15 +173,6 @@ bool is_windows_role(Role role)
|
|||
Role::dialog);
|
||||
}
|
||||
|
||||
bool is_non_abstract_role(Role role)
|
||||
{
|
||||
return is_widget_role(role)
|
||||
|| is_document_structure_role(role)
|
||||
|| is_landmark_role(role)
|
||||
|| is_live_region_role(role)
|
||||
|| is_windows_role(role);
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/wai-aria-1.2/#namefromcontent
|
||||
bool allows_name_from_content(Role role)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue