LibWeb: Fix internal logic for recognizing non-abstract ARIA roles

This commit is contained in:
sideshowbarker 2024-12-18 22:18:01 +09:00 committed by Sam Atkins
commit ce65457746
Notes: github-actions[bot] 2024-12-18 15:25:50 +00:00
7 changed files with 76 additions and 11 deletions

View file

@ -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;
}