From 8433264fab0f3783dc7c9a4b92d4dc41538d123c Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Tue, 6 Feb 2024 11:28:05 -0500 Subject: [PATCH] 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 --- html-aam/index.html | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/html-aam/index.html b/html-aam/index.html index 0c37baa3e..4e5d528e3 100644 --- a/html-aam/index.html +++ b/html-aam/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.