LibWeb: Add support for the “mark” ARIA role

This commit is contained in:
sideshowbarker 2024-12-08 15:53:19 +09:00 committed by Tim Flynn
parent 96540e9f89
commit 6e24f23aa0
Notes: github-actions[bot] 2024-12-12 13:15:00 +00:00
4 changed files with 48 additions and 0 deletions

View file

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