From c8435a915d38a1695ae33266988911eb4847593f Mon Sep 17 00:00:00 2001
From: Scott O'Hara Exposing HTML Features That Do Not Directly Map to Accessibility APIs
API properties in the [[core-aam-1.2]].
+ An element with a contextual role is one whose implicit WAI-ARIA role semantics are based on its anestral accessibility tree relationship to another element or elements. Or, an element whose computed role is reliant on whether the element has been provided an accessible name. +
++ For instance, an element that is an accessibility child of its required accessibility parent would expose a computed role that was + appropriate for this context. Where the same element might be used in another context with a different accessibility parent, and would therefore expose a computed role + appropriate for that context. +
++ When the conditions for an element's contextual role are not met, it will commonly expose a computed role of `generic` or with a minimum role, if applicable. +
+Previously, the concept of a contextual role was loosely referred to as an element's "scoped" relationship to another element.
+
+ A li
element has an implicit WAI-ARIA role mapping of listitem
only when the element is an accessibility child of a
+ menu
, ol
or ul
element that has not had its `list` role mapping suppressed.
+
<ul>
+ <li>...</li> <!-- role=listitem -->
+ </ul>
+ <article>
+ ...
+ <li>...</li> <!-- not role=listitem -->
+ ...
+
+ An aside
element has an implicit WAI-ARIA role mapping of complementary
only when the element is an accessibility child of
+ the body
or main
elements, or if the aside
has been provided an accessible name.
+
<body>
+ ...
+ <main>
+ ...
+ <article>
+ <aside>...</aside> <!-- not role=complementary -->
+ ...
+ <aside aria-label=named>...</aside> <!-- role=complementary -->
+ </article>
+ ...
+ <aside>...</aside> <!-- role=complementary -->
+ </main>
+ <aside>...</aside> <!-- role=complementary -->
+ ...
+ <footer>
+ ...
+ <aside>...</aside> <!-- not role=complementary -->
+ </footer>
+ A section
element has an implicit WAI-ARIA role mapping of region
only when the element is provided an accessible name.
<section title="accessible name">...</section> <!-- role=region -->
+ ...
+ <section aria-label="accessible name">...</section> <!-- role=region -->
+ ...
+ <section>...</section> <!-- not role=region -->
+ - An element with a contextual role is one whose implicit WAI-ARIA role semantics are based on its anestral accessibility tree relationship to another element or elements. Or, an element whose computed role is reliant on whether the element has been provided an accessible name. + An element with a contextual role is one whose implicit WAI-ARIA role semantics are based on its anestral accessibility tree relationship to + another element or elements. Or, an element whose computed role is reliant on whether the element has been provided an accessible name.
For instance, an element that is an accessibility child of its required accessibility parent would expose a computed role that was - appropriate for this context. Where the same element might be used in another context with a different accessibility parent, and would therefore expose a computed role - appropriate for that context. + appropriate for its related context. Where the same element with a contextual role might be used within another markup pattern and have a different accessibility parent, + and would therefore expose a computed role appropriate for that context.
When the conditions for an element's contextual role are not met, it will commonly expose a computed role of `generic` or with a minimum role, if applicable. @@ -228,7 +229,7 @@
- A li
element has an implicit WAI-ARIA role mapping of listitem
only when the element is an accessibility child of a
+ A li
element has an implicit WAI-ARIA role mapping of listitem
only when the element is an accessibility child of a
menu
, ol
or ul
element that has not had its `list` role mapping suppressed.
<ul>
From ba0848634602f0967f50d7cda3d012ecf7ffaa41 Mon Sep 17 00:00:00 2001
From: Scott O'Hara
Date: Thu, 11 May 2023 12:57:04 -0400
Subject: [PATCH 03/12] Update index.html
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 8df6e938..f00a0634 100644
--- a/index.html
+++ b/index.html
@@ -213,7 +213,7 @@ Exposing HTML Features That Do Not Directly Map to Accessibility APIs
Exposing HTML Features With Contextual Roles
- An element with a contextual role is one whose implicit WAI-ARIA role semantics are based on its anestral accessibility tree relationship to
+ An element with a contextual role is one whose implicit WAI-ARIA role semantics are based on its ancestral accessibility tree relationship to
another element or elements. Or, an element whose computed role is reliant on whether the element has been provided an accessible name.
From f7ae36160d7121b6d649dddaf437a7fa9d2faf72 Mon Sep 17 00:00:00 2001
From: Scott O'Hara
Date: Thu, 11 May 2023 12:57:09 -0400
Subject: [PATCH 04/12] Update index.html
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index f00a0634..81e6e8fc 100644
--- a/index.html
+++ b/index.html
@@ -222,7 +222,7 @@ Exposing HTML Features With Contextual Roles
and would therefore expose a computed role appropriate for that context.
- When the conditions for an element's contextual role are not met, it will commonly expose a computed role of `generic` or with a minimum role, if applicable.
+ When the conditions for an element's contextual role are not met, it will commonly expose a computed role of `generic` or with a minimum role, if applicable.
Previously, the concept of a contextual role was loosely referred to as an element's "scoped" relationship to another element.
From b199e6715029d2dc3c5877f7584fadc0da85c711 Mon Sep 17 00:00:00 2001
From: Scott O'Hara
Date: Thu, 11 May 2023 12:57:14 -0400
Subject: [PATCH 05/12] Update index.html
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 81e6e8fc..f7f418f9 100644
--- a/index.html
+++ b/index.html
@@ -242,7 +242,7 @@ Exposing HTML Features With Contextual Roles
- An aside
element has an implicit WAI-ARIA role mapping of complementary
only when the element is an accessibility child of
+ An aside
element has an implicit WAI-ARIA role mapping of complementary
only when the element is an accessibility child of
the body
or main
elements, or if the aside
has been provided an accessible name.
<body>
From 5b7534a6d71026d0e0c1b04d71b4a6a118abd1b5 Mon Sep 17 00:00:00 2001
From: Scott O'Hara
Date: Thu, 11 May 2023 12:57:20 -0400
Subject: [PATCH 06/12] Update index.html
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index f7f418f9..d2552e2c 100644
--- a/index.html
+++ b/index.html
@@ -266,7 +266,7 @@ Exposing HTML Features With Contextual Roles
- A section
element has an implicit WAI-ARIA role mapping of region
only when the element is provided an accessible name.
+ A section
element has an implicit WAI-ARIA role mapping of region
only when the element is provided an accessible name.
<section title="accessible name">...</section> <!-- role=region -->
...
From 314e3b69946ecd7f249c8bf21d4aa9b040e8136a Mon Sep 17 00:00:00 2001
From: Scott O'Hara
Date: Thu, 18 May 2023 08:09:32 -0400
Subject: [PATCH 07/12] Apply suggestions from code review
Co-authored-by: James Craig
---
index.html | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/index.html b/index.html
index d2552e2c..f44725d0 100644
--- a/index.html
+++ b/index.html
@@ -233,11 +233,11 @@ Exposing HTML Features With Contextual Roles
menu
, ol
or ul
element that has not had its `list` role mapping suppressed.
<ul>
- <li>...</li> <!-- role=listitem -->
+ <li>...</li> <!-- computed role `listitem` -->
</ul>
<article>
...
- <li>...</li> <!-- not role=listitem -->
+ <li>...</li> <!-- computed role `generic`, not `listitem` -->
...
@@ -250,29 +250,29 @@ Exposing HTML Features With Contextual Roles
<main>
...
<article>
- <aside>...</aside> <!-- not role=complementary -->
+ <aside>...</aside> <!-- computed role `generic`, not `complementary` -->
...
- <aside aria-label=named>...</aside> <!-- role=complementary -->
+ <aside aria-label=named>...</aside> <!-- computed role `complementary` -->
</article>
...
- <aside>...</aside> <!-- role=complementary -->
+ <aside>...</aside> <!-- computed role `complementary` -->
</main>
- <aside>...</aside> <!-- role=complementary -->
+ <aside>...</aside> <!-- computed role `complementary` -->
...
<footer>
...
- <aside>...</aside> <!-- not role=complementary -->
+ <aside>...</aside> <!-- computed role `generic`, not `complementary` -->
</footer>
A section
element has an implicit WAI-ARIA role mapping of region
only when the element is provided an accessible name.
- <section title="accessible name">...</section> <!-- role=region -->
+ <section title="accessible name">...</section> <!-- computed role `region` -->
...
- <section aria-label="accessible name">...</section> <!-- role=region -->
+ <section aria-label="accessible name">...</section> <!-- computed role `region` -->
...
- <section>...</section> <!-- not role=region -->
+ <section>...</section> <!-- computed role `generic`, not `region` -->
From 522932565b66ecd2d812076ad9e256a93c830bbf Mon Sep 17 00:00:00 2001
From: Scott O'Hara
Date: Fri, 19 May 2023 09:56:20 -0400
Subject: [PATCH 08/12] Update index.html
Co-authored-by: James Craig
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index f44725d0..9e11dd11 100644
--- a/index.html
+++ b/index.html
@@ -214,7 +214,7 @@ Exposing HTML Features That Do Not Directly Map to Accessibility APIs
Exposing HTML Features With Contextual Roles
An element with a contextual role is one whose implicit WAI-ARIA role semantics are based on its ancestral accessibility tree relationship to
- another element or elements. Or, an element whose computed role is reliant on whether the element has been provided an accessible name.
+ another element or elements. Or, an element whose computed role is dependent upon whether it has other associated accessibility information, such as an author-provided accessible label.
For instance, an element that is an accessibility child of its required accessibility parent would expose a computed role that was
From e65fc2b991117020dfab53fefabf7a48d0014a94 Mon Sep 17 00:00:00 2001
From: Scott O'Hara
Date: Fri, 19 May 2023 09:57:09 -0400
Subject: [PATCH 09/12] word change
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 9e11dd11..1bbc5056 100644
--- a/index.html
+++ b/index.html
@@ -214,7 +214,7 @@ Exposing HTML Features That Do Not Directly Map to Accessibility APIs
Exposing HTML Features With Contextual Roles
An element with a contextual role is one whose implicit WAI-ARIA role semantics are based on its ancestral accessibility tree relationship to
- another element or elements. Or, an element whose computed role is dependent upon whether it has other associated accessibility information, such as an author-provided accessible label.
+ another element or elements. Or, an element whose computed role is dependent upon whether it has other associated accessibility information, such as an author-provided accessible name.
For instance, an element that is an accessibility child of its required accessibility parent would expose a computed role that was
From cadfcf4124a6759e71c93a6842df8e3c9f894de6 Mon Sep 17 00:00:00 2001
From: Scott O'Hara
Date: Fri, 19 May 2023 10:10:26 -0400
Subject: [PATCH 10/12] consistent wording
use computed role in both sentences, rather than switching between terms
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 1bbc5056..4add3aea 100644
--- a/index.html
+++ b/index.html
@@ -213,7 +213,7 @@ Exposing HTML Features That Do Not Directly Map to Accessibility APIs
Exposing HTML Features With Contextual Roles
- An element with a contextual role is one whose implicit WAI-ARIA role semantics are based on its ancestral accessibility tree relationship to
+ An element with a contextual role is one whose computed role semantics are based on its ancestral accessibility tree relationship to
another element or elements. Or, an element whose computed role is dependent upon whether it has other associated accessibility information, such as an author-provided accessible name.
From fec393a7e6e48022b2461f56d28956b03a4f6b3e Mon Sep 17 00:00:00 2001
From: Scott O'Hara
Date: Fri, 19 May 2023 10:12:14 -0400
Subject: [PATCH 11/12] Update index.html
Co-authored-by: James Craig
---
index.html | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/index.html b/index.html
index 4add3aea..e4a7a9ef 100644
--- a/index.html
+++ b/index.html
@@ -217,9 +217,7 @@ Exposing HTML Features With Contextual Roles
another element or elements. Or, an element whose computed role is dependent upon whether it has other associated accessibility information, such as an author-provided accessible name.
- For instance, an element that is an accessibility child of its required accessibility parent would expose a computed role that was
- appropriate for its related context. Where the same element with a contextual role might be used within another markup pattern and have a different accessibility parent,
- and would therefore expose a computed role appropriate for that context.
+ For instance, an element that is an accessibility child of its required accessibility parent would expose a computed role for its given context, such as a list item (li
) within an unordered list (ul
). However, the same element might be used within a different markup pattern and could therefore expose different contextually-dependent computed roles, such as a labeled section
element (role region
) versus an unlabeled section
element (role generic
).
When the conditions for an element's contextual role are not met, it will commonly expose a computed role of `generic` or with a minimum role, if applicable.
From 11aa6ceac9ef20c592adc6bc5c9c367600dd1720 Mon Sep 17 00:00:00 2001
From: Scott O'Hara
Date: Fri, 19 May 2023 10:21:38 -0400
Subject: [PATCH 12/12] fix formatting
---
index.html | 62 ++++++++++++++++++++++++++++--------------------------
1 file changed, 32 insertions(+), 30 deletions(-)
diff --git a/index.html b/index.html
index e4a7a9ef..a456b8fe 100644
--- a/index.html
+++ b/index.html
@@ -217,7 +217,9 @@ Exposing HTML Features With Contextual Roles
another element or elements. Or, an element whose computed role is dependent upon whether it has other associated accessibility information, such as an author-provided accessible name.
- For instance, an element that is an accessibility child of its required accessibility parent would expose a computed role for its given context, such as a list item (li
) within an unordered list (ul
). However, the same element might be used within a different markup pattern and could therefore expose different contextually-dependent computed roles, such as a labeled section
element (role region
) versus an unlabeled section
element (role generic
).
+ For instance, an element that is an accessibility child of its required accessibility parent would expose a computed role for its given context,
+ such as a list item (`li` element) within an unordered list (`ul` element). However, the same element might be used within a different markup pattern and could therefore expose
+ different contextually-dependent computed roles, such as a `section` element with an author-provided accessible name (role `region`) versus an unnamed `section` element (role `generic`).
When the conditions for an element's contextual role are not met, it will commonly expose a computed role of `generic` or with a minimum role, if applicable.
@@ -231,12 +233,12 @@
Exposing HTML Features With Contextual Roles
menu
, ol
or ul
element that has not had its `list` role mapping suppressed.
<ul>
- <li>...</li> <!-- computed role `listitem` -->
- </ul>
- <article>
- ...
- <li>...</li> <!-- computed role `generic`, not `listitem` -->
- ...
+ <li>...</li> <!-- computed role `listitem` -->
+ </ul>
+ <article>
+ ...
+ <li>...</li> <!-- computed role `generic`, not `listitem` -->
+ ...
@@ -244,33 +246,33 @@
body
or main
elements, or if the aside
has been provided an accessible name.
<body>
- ...
- <main>
- ...
- <article>
- <aside>...</aside> <!-- computed role `generic`, not `complementary` -->
- ...
- <aside aria-label=named>...</aside> <!-- computed role `complementary` -->
- </article>
- ...
- <aside>...</aside> <!-- computed role `complementary` -->
- </main>
- <aside>...</aside> <!-- computed role `complementary` -->
- ...
- <footer>
- ...
- <aside>...</aside> <!-- computed role `generic`, not `complementary` -->
- </footer>
+ ...
+ <main>
+ ...
+ <article>
+ <aside>...</aside> <!-- computed role `generic`, not `complementary` -->
+ ...
+ <aside aria-label=named>...</aside> <!-- computed role `complementary` -->
+ </article>
+ ...
+ <aside>...</aside> <!-- computed role `complementary` -->
+ </main>
+ <aside>...</aside> <!-- computed role `complementary` -->
+ ...
+ <footer>
+ ...
+ <aside>...</aside> <!-- computed role `generic`, not `complementary` -->
+ </footer>
+...
A section
element has an implicit WAI-ARIA role mapping of region
only when the element is provided an accessible name.
<section title="accessible name">...</section> <!-- computed role `region` -->
- ...
- <section aria-label="accessible name">...</section> <!-- computed role `region` -->
- ...
- <section>...</section> <!-- computed role `generic`, not `region` -->
+ <section title="accessible name">...</section> <!-- computed role `region` -->
+...
+<section aria-label="accessible name">...</section> <!-- computed role `region` -->
+...
+<section>...</section> <!-- computed role `generic`, not `region` -->