diff --git a/aria-practices.html b/aria-practices.html index d1c5713b3f..ff52a9fb58 100644 --- a/aria-practices.html +++ b/aria-practices.html @@ -2322,14 +2322,65 @@
- Work on drafting this section is tracked by - issue 90. + Please provide feedback on this section in + issue 526.
- This is a place holder for a to-be-written section about data tables.
- The grid pattern includes text describing how to choose between using grid and table, and it links to this section.
- This section does not necessarily have to be part of the design pattern section.
+ Like an HTML table
element, a WAI-ARIA table is a static tabular structure containing one or more rows that each contain one or more cells; it is not an interactive widget.
+ Thus, its cells are not focusable or selectable.
+ The grid pattern is used to make an interactive widget that has a tabular structure.
+ However, tables are often used to present a combination of information and interactive widgets. + Since a table is not a widget, Each widget contained in a table is a separate stop in the page tab sequence. + If the number of widgets is large, replacing the table with a grid can dramatically reduce the length of the page tab sequence because a grid is a composite widget that can contain other widgets. +
+
+ As with other WAI-ARIA roles that have a native host language equivalent,
+ authors are strongly encouraged to use a native HTML table
element whenever possible.
+ This is especially important with role table
because it is a new feature of WAI-ARIA 1.1.
+ It is thus advisable to test implementations thoroughly with each browser and assistive technology combination that could be used by the target audience.
+
Table Example: ARIA table made using HTML div
and span
elements.
Not applicable.
+table
element or an element with role rowgroup. row
element and has one of the following roles:
+
+ If rows or cells are included in a table via aria-owns,
+ they will be presented to assistive technologies after the DOM descendants of the table
element unless the DOM descendants are also included in the aria-owns
attribute.
+
+ NOTE: This example page is not complete and is not yet ready for review. + Work on this page is tracked in + issue 242. +
+
+ The below example illustrates an implementation of the WAI-ARIA
+ table design pattern.
+ Note that when possible, using a native HTML table
element is recommended.
+
Similar examples include:
+Not Applicable
+Role | +Attribute | +Element | +Usage | +
---|---|---|---|
table |
+ + | div |
+ Identifies the element containing the table structure. | +
+ |
+ aria-label="Students"
+ |
+ div |
+ Provides an accessible name for the table. | +
+ |
+ aria-describedby="IDREF"
+ |
+ div |
+ Refers to the element that serves as the caption for the table. | +
rowgroup |
+ + | div |
+
+
|
+
row |
+ + | div |
+ Identifies each element that contains the cells for a row. | +
columnheader |
+ + | span |
+ Identifies elements that serve as a cell containing a column label. | +
cell |
+ + | span |
+ Identifies elements containing content for a single cell. | +
+
+
+