LibWeb: Return correct RoleType for composite ARIA role

This commit is contained in:
Tim Ledbetter 2024-01-27 17:27:03 +00:00 committed by Tim Flynn
parent f0d2a21d77
commit 6f5dd9e11c

View file

@ -174,7 +174,7 @@ ErrorOr<NonnullOwnPtr<RoleType>> RoleType::build_role_object(Role role, bool foc
case Role::complementary:
return adopt_nonnull_own_or_enomem(new (nothrow) Complementary(data));
case Role::composite:
return adopt_nonnull_own_or_enomem(new (nothrow) ContentInfo(data));
return adopt_nonnull_own_or_enomem(new (nothrow) Composite(data));
case Role::contentinfo:
return adopt_nonnull_own_or_enomem(new (nothrow) ContentInfo(data));
case Role::definition: