mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
LibWeb: Return correct RoleType for composite ARIA role
This commit is contained in:
parent
f0d2a21d77
commit
6f5dd9e11c
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue