mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Add the search element
This commit is contained in:
parent
866609c682
commit
f09ed59351
Notes:
github-actions[bot]
2024-11-19 23:59:54 +00:00
Author: https://github.com/Psychpsyo
Commit: f09ed59351
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2444
Reviewed-by: https://github.com/tcl3 ✅
Reviewed-by: https://github.com/trflynn89
6 changed files with 12 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue