From 55d748eff04ce370bf2c51d93a3cefeea30cc1fb Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Tue, 6 Feb 2024 11:28:05 -0500 Subject: [PATCH 1/4] Addition: Name from heading closes #457 Related to the following: - https://github.com/w3c/aria/pull/1860 - https://github.com/w3c/accname/pull/229 (this needs to be merged so the new links to 'accName: name from heading' will work --- index.html | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 0c37baa..4e5d528 100644 --- a/index.html +++ b/index.html @@ -16435,6 +16435,26 @@

Other Form Elements Accessible Name Computation

+
+

`dialog` Element Accessible Name Computation

+
    +
  1. + If the `dialog` element has an `aria-label` or an + `aria-labelledby` attribute the + accessible name is to be calculated using the algorithm defined in + Accessible Name and Description: Computation and API Mappings. +
  2. +
  3. + If the accessible name is still empty, then: if the `dialog` element has a + descendant that is a heading element (`h1`-`h6`), then use the subtree of the first such element + as defined in accname: Name from Heading. +
  4. +
  5. + If the accessible name is still empty, then:, if the `dialog` element has a `title` attribute, then use that attribute. +
  6. +
  7. Otherwise, there is no accessible name.
  8. +
+

`summary` Element Accessible Name Computation

    @@ -16451,6 +16471,26 @@

    `summary` Element Accessible Name Computation

+
+

`article` Element Accessible Name Computation

+
    +
  1. + If the `article` element has an `aria-label` or an + `aria-labelledby` attribute the + accessible name is to be calculated using the algorithm defined in + Accessible Name and Description: Computation and API Mappings. +
  2. +
  3. + If the accessible name is still empty, then: if the `article` element has a + descendant that is a heading element (`h1`-`h6`), then use the subtree of the first such element + as defined in accname: Name from Heading. +
  4. +
  5. + If the accessible name is still empty, then:, if the `article` element has a `title` attribute, then use that attribute. +
  6. +
  7. Otherwise, there is no accessible name.
  8. +
+

`figure` Element Accessible Name Computation

    @@ -16547,7 +16587,7 @@

    `iframe` Element Accessible Name Computation

    The document referenced by the `src` of the `iframe` element gets its name from that document's `title` element, like any other document. If there is no `title` provided, there is no accessible name.

-

Section and Grouping Element Accessible Name Computation

+

Other Section and Grouping Element Accessible Name Computation

  1. If the element has an `aria-label` or an `aria-labelledby` attribute the accessible name is to be calculated using the algorithm defined in Accessible Name and Description: Computation and API Mappings. From b5e9a276715f55cc2cd4f07f34daa742424ed177 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Thu, 8 Feb 2024 12:17:42 -0500 Subject: [PATCH 2/4] 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 4e5d528..51fd631 100644 --- a/index.html +++ b/index.html @@ -16482,7 +16482,7 @@

    `article` Element Accessible Name Computation

  2. If the accessible name is still empty, then: if the `article` element has a - descendant that is a heading element (`h1`-`h6`), then use the subtree of the first such element + descendant that is a heading element (`h1`-`h6`), then use the accessible name of the first such element as defined in accname: Name from Heading.
  3. From 5ad63fa53afbf1ca8061cfb1b29023e5656b3799 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Thu, 8 Feb 2024 12:17:57 -0500 Subject: [PATCH 3/4] 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 51fd631..5798e0d 100644 --- a/index.html +++ b/index.html @@ -16446,7 +16446,7 @@

    `dialog` Element Accessible Name Computation

  4. If the accessible name is still empty, then: if the `dialog` element has a - descendant that is a heading element (`h1`-`h6`), then use the subtree of the first such element + descendant that is a heading element (`h1`-`h6`), then use the accessible name of the first such element as defined in accname: Name from Heading.
  5. From 8131f4b480d1482f1a287e79f913ed6e86d5cc6f Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Thu, 8 Feb 2024 12:24:42 -0500 Subject: [PATCH 4/4] Update index.html per @cookiecrook review, changing a couple more instances where 'accessible name' should be used instead of 'subtree' --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 5798e0d..aa6ef80 100644 --- a/index.html +++ b/index.html @@ -16401,7 +16401,7 @@

    `fieldset` Element Accessible Name Computation

    If the `fieldset` element has an `aria-label` or an `aria-labelledby` attribute the accessible name is to be calculated using the algorithm defined in Accessible Name and Description: Computation and API Mappings.
  6. - If the accessible name is still empty, then: if the `fieldset` element has a child that is a legend element, then use the subtree of the first such element. + If the accessible name is still empty, then: if the `fieldset` element has a child that is a legend element, then use the accessible name of the first such element.
  7. If the accessible name is still empty, then:, if the `fieldset` element has a `title` attribute, then use that attribute. @@ -16530,7 +16530,7 @@

    `table` Element Accessible Name Computation

    If the `table` element has an `aria-label` or an `aria-labelledby` attribute the accessible name is to be calculated using the algorithm defined in Accessible Name and Description: Computation and API Mappings.
  8. - If the accessible name is still empty, then: if the `table` element has a child that is a caption element, then use the subtree of the first such element. + If the accessible name is still empty, then: if the `table` element has a child that is a caption element, then use the accessible name of the first such element.
  9. If the accessible name is still empty, then: if the `table` element has a `title` attribute, then use that attribute.