mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibWeb: Return correct RoleType for composite ARIA role
This commit is contained in:
parent
f0d2a21d77
commit
6f5dd9e11c
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ ErrorOr<NonnullOwnPtr<RoleType>> RoleType::build_role_object(Role role, bool foc
|
||||||
case Role::complementary:
|
case Role::complementary:
|
||||||
return adopt_nonnull_own_or_enomem(new (nothrow) Complementary(data));
|
return adopt_nonnull_own_or_enomem(new (nothrow) Complementary(data));
|
||||||
case Role::composite:
|
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:
|
case Role::contentinfo:
|
||||||
return adopt_nonnull_own_or_enomem(new (nothrow) ContentInfo(data));
|
return adopt_nonnull_own_or_enomem(new (nothrow) ContentInfo(data));
|
||||||
case Role::definition:
|
case Role::definition:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue