mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-31 15:32:51 +00:00
LibWeb: Add support for the “mark” ARIA role
This commit is contained in:
parent
96540e9f89
commit
6e24f23aa0
Notes:
github-actions[bot]
2024-12-12 13:15:00 +00:00
Author: https://github.com/sideshowbarker
Commit: 6e24f23aa0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2836
Reviewed-by: https://github.com/trflynn89
4 changed files with 48 additions and 0 deletions
|
@ -776,6 +776,9 @@ Optional<ARIA::Role> HTMLElement::default_role() const
|
|||
// https://www.w3.org/TR/html-aria/#el-main
|
||||
if (local_name() == TagNames::main)
|
||||
return ARIA::Role::main;
|
||||
// https://www.w3.org/TR/html-aria/#el-mark
|
||||
if (local_name() == TagNames::mark)
|
||||
return ARIA::Role::mark;
|
||||
// https://www.w3.org/TR/html-aria/#el-nav
|
||||
if (local_name() == TagNames::nav)
|
||||
return ARIA::Role::navigation;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue