mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Add support for the “mark” ARIA role
This commit is contained in:
committed by
Tim Flynn
parent
96540e9f89
commit
6e24f23aa0
Notes:
github-actions[bot]
2024-12-12 13:15:00 +00:00
Author: https://github.com/sideshowbarker Commit: https://github.com/LadybirdBrowser/ladybird/commit/6e24f23aa09 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2836 Reviewed-by: https://github.com/trflynn89
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user