mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 22:15:07 +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
|
@ -7,6 +7,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/DOM/ARIARoleNames.h>
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
@ -21,6 +22,11 @@ public:
|
|||
WebIDL::ExceptionOr<JS::NonnullGCPtr<HTMLTableRowElement>> insert_row(long index);
|
||||
WebIDL::ExceptionOr<void> delete_row(long index);
|
||||
|
||||
// https://www.w3.org/TR/html-aria/#el-tbody
|
||||
// https://www.w3.org/TR/html-aria/#el-tfoot
|
||||
// https://www.w3.org/TR/html-aria/#el-thead
|
||||
virtual FlyString default_role() const override { return DOM::ARIARoleNames::rowgroup; }
|
||||
|
||||
private:
|
||||
HTMLTableSectionElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue