LibWeb: Add the search element

This commit is contained in:
Psychpsyo 2024-11-19 20:03:15 +01:00 committed by Tim Ledbetter
commit f09ed59351
Notes: github-actions[bot] 2024-11-19 23:59:54 +00:00
6 changed files with 12 additions and 9 deletions

View file

@ -775,6 +775,9 @@ Optional<ARIA::Role> HTMLElement::default_role() const
// https://www.w3.org/TR/html-aria/#el-samp
if (local_name() == TagNames::samp)
return ARIA::Role::generic;
// https://www.w3.org/TR/html-aria/#el-search
if (local_name() == TagNames::search)
return ARIA::Role::search;
// https://www.w3.org/TR/html-aria/#el-section
if (local_name() == TagNames::section) {
// TODO: role=region if the section element has an accessible name