mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 01:44:58 +00:00
LibWeb: Add Support for the ARIA Element Properties
Element now supports getting and setting ARIA properties from JS and HTML.
This commit is contained in:
parent
0a244b9c1f
commit
e63d9d4925
57 changed files with 976 additions and 1 deletions
|
@ -69,4 +69,19 @@ void HTMLTableCellElement::set_row_span(unsigned int value)
|
|||
MUST(set_attribute(HTML::AttributeNames::rowspan, DeprecatedString::number(value)));
|
||||
}
|
||||
|
||||
FlyString HTMLTableCellElement::default_role() const
|
||||
{
|
||||
// TODO: For td:
|
||||
// role=cell if the ancestor table element is exposed as a role=table
|
||||
// role=gridcell if the ancestor table element is exposed as a role=grid or treegrid
|
||||
// No corresponding role if the ancestor table element is not exposed as a role=table, grid or treegrid
|
||||
// For th:
|
||||
// role=columnheader, rowheader or cell if the ancestor table element is exposed as a role=table
|
||||
// role=columnheader, rowheader or gridcell if the ancestor table element is exposed as a role=grid or treegrid
|
||||
// No corresponding role if the ancestor table element is not exposed as a role=table, grid or treegrid
|
||||
// https://www.w3.org/TR/html-aria/#el-td
|
||||
// https://www.w3.org/TR/html-aria/#el-th
|
||||
return {};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue