From a2235a99f6b0e8406643222e6c915e372b09ae8a Mon Sep 17 00:00:00 2001 From: scottaohara Date: Sat, 20 Feb 2021 14:12:22 -0500 Subject: [PATCH 1/2] updates table element allowances MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * tbody, thead, tfoot - revise role to indicate they are either `rowgroup` or have no corresponding role depending on role of ancestor table element. Update allowed roles to be either ‘none’ if ancestor table is exposed as a table, grid or treegrid. If not one of those 3 roles, then any role is allowed. * update tr to note that it is exposed as a row if ancestor table is exposed as a table, grid or treegrid. otherwise on corresponding role. * update th and td role columns to be consistent. remove link to HTML AAM in th - it wasn’t in the td one, and we already indicate that implicit semantics are defined in HTML AAM in other areas of the spec. indicate that th/td have no corresponding role if the ancestor table is not exposed as a table, grid or treegrid --- index.html | 72 +++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 52 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index 64bffbee..3b886fff 100644 --- a/index.html +++ b/index.html @@ -2515,11 +2515,19 @@

[^tbody^] - role=rowgroup +

+ If the ancestor `table` element is exposed as a `role=table`, `grid` or `treegrid` then: + `role=rowgroup` +

+

+ If the ancestor `table` element is not exposed as a `role=table`, `grid` or `treegrid` then: no corresponding role. +

- Any `role` + No `role` if the ancestor `table` + element has `role=table`, `grid`, or `treegrid`; otherwise + any `role`.

Global `aria-*` attributes and @@ -2561,11 +2569,19 @@

[^tfoot^] - role=rowgroup +

+ If the ancestor `table` element is exposed as a `role=table`, `grid` or `treegrid` then: + `role=rowgroup` +

+

+ If the ancestor `table` element is not exposed as a `role=table`, `grid` or `treegrid` then: no corresponding role. +

- Any `role` + No `role` if the ancestor `table` + element has `role=table`, `grid`, or `treegrid`; otherwise + any `role`.

Global `aria-*` attributes and @@ -2579,11 +2595,19 @@

[^thead^] - role=rowgroup +

+ If the ancestor `table` element is exposed as a `role=table`, `grid` or `treegrid` then: + `role=rowgroup` +

+

+ If the ancestor `table` element is not exposed as a `role=table`, `grid` or `treegrid` then: no corresponding role. +

- Any `role` + No `role` if the ancestor `table` + element has `role=table`, `grid`, or `treegrid`; otherwise + any `role`.

Global `aria-*` attributes and @@ -2627,12 +2651,13 @@

- role=cell if the ancestor - `table` element is exposed as a `role=table`. + If the ancestor `table` element is exposed as a `role=table` then: role=cell. +

+

+ If the ancestor `table` element is exposed as a `role=grid` or `treegrid` then: role=gridcell.

- role=gridcell if the ancestor - `table` element is exposed as a `role=grid` or `treegrid`. + If the ancestor `table` element is not exposed as a `role=table`, `grid` or `treegrid` then: no corresponding role.

@@ -2654,20 +2679,21 @@

- If the ancestor `table` element is exposed as a `role=table`: role=columnheader, - `rowheader` or `cell` according to - HTML AAM. -

+ If the ancestor `table` element is exposed as a `role=table` then: role=columnheader, + `rowheader` or `cell`. +

- If the ancestor `table` element is exposed as a `role=grid` or `treegrid`: role=columnheader, - `rowheader` or `gridcell` according to - HTML AAM. -

+ If the ancestor `table` element is exposed as a `role=grid` or `treegrid` then: role=columnheader, + `rowheader` or `gridcell`. +

+

+ If the ancestor `table` element is not exposed as a `role=table`, `grid` or `treegrid` then: no corresponding role. +

No `role` if the ancestor `table` - element has `role=table`, `grid`, or `treegrid`; otherwise + element is exposed as a `role=table`, `grid`, or `treegrid`; otherwise any `role`.

@@ -2682,7 +2708,13 @@

[^tr^] - `role=row` +

+ If the ancestor `table` element is exposed as a `role=table`, `grid` or `treegrid` then: + `role=row` +

+

+ If the ancestor `table` element is not exposed as a `role=table`, `grid` or `treegrid` then: no corresponding role. +

From 9787194a8a5014df90c277e24b06a4a5efc108c7 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Wed, 24 Feb 2021 15:14:07 -0500 Subject: [PATCH 2/2] source formatting just making some changes to the file to try and mitigate the the Travis build process getting all mucked up again. --- index.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 470d4921..264bf8c2 100644 --- a/index.html +++ b/index.html @@ -2926,7 +2926,11 @@

Document conformance requirements for use of ARIA attributes with HTML attributes

- Unless otherwise stated, authors MAY use `aria-*` attributes in place of their HTML equivalents on HTML elements where the `aria-*` semantics would be expected. For example, authors MAY use `aria-disabled=true` on a `button` rather than the `disabled` attribute. However, authors SHOULD NOT use both the native HTML attribute and the `aria-*` attribute together. As stated in WAI-ARIA's Conflicts with Host Language Semantics, user agents MUST ignore WAI-ARIA attributes and use the host language (HTML) attribute with the same implicit ARIA semantics. + Unless otherwise stated, authors MAY use `aria-*` attributes in place of their HTML equivalents on HTML elements where + the `aria-*` semantics would be expected. For example, authors MAY use `aria-disabled=true` on a `button` rather than the + `disabled` attribute. However, authors SHOULD NOT use both the native HTML attribute and the `aria-*` attribute together. + As stated in WAI-ARIA's Conflicts with Host Language Semantics, + user agents MUST ignore WAI-ARIA attributes and use the host language (HTML) attribute with the same implicit ARIA semantics.

The following table represents HTML elements and their attributes which have `aria-*` attribute parity. @@ -2934,7 +2938,8 @@

Each language feature (element and attribute) in a cell in the first column implies the ARIA semantics (states, and properties) given in the cell in the second column - of the same row. The third cell in each row defines how authors can use the native HTML feature, along with requirements for using the `aria-*` attributes that supply the same implicit ARIA semantics. + of the same row. The third cell in each row defines how authors can use the native HTML feature, along with requirements for + using the `aria-*` attributes that supply the same implicit ARIA semantics.

@@ -3036,7 +3041,8 @@

`placeholder` attribute in HTML.

- Authors MAY use the `aria-placeholder` attribute on any element that is allowed the `placeholder` attribute in HTML, or any element with a WAI-ARIA role which allows the `aria-placeholder` attribute. + Authors MAY use the `aria-placeholder` attribute on any element that is allowed the `placeholder` attribute in HTML, + or any element with a WAI-ARIA role which allows the `aria-placeholder` attribute.

Authors MUST NOT use the `aria-placeholder` attribute on any element which also has a `placeholder` attribute. @@ -3054,7 +3060,8 @@

Use the `max` attribute on any element that is - allowed the `max` attribute in HTML. It is NOT RECOMMENDED to use the `aria-valuemax` attribute on these elements. + allowed the `max` attribute in HTML. + It is NOT RECOMMENDED to use the `aria-valuemax` attribute on these elements.

Authors MAY use the `aria-valuemax` attribute on any other element with a WAI-ARIA role which allows the attribute.