diff --git a/accname/index.html b/accname/index.html index cb4b8090a..2ec7e6107 100644 --- a/accname/index.html +++ b/accname/index.html @@ -646,6 +646,10 @@

Computation steps

+
  • + Name From Heading: Otherwise, if the current node has a role that supports nameFrom: heading, + return the text alternative of the first descendant element node matching the role of heading in a depth-first search. +
  • Name From Content: Otherwise, if the current node's role allows name from content, or if the current node is referenced by aria-labelledby, aria-describedby, or diff --git a/html-aam/index.html b/html-aam/index.html index 5e1fe5c4e..dd6ac973c 100644 --- a/html-aam/index.html +++ b/html-aam/index.html @@ -16816,7 +16816,43 @@

    `iframe` Element Accessible Name Computation

    -

    Section and Grouping Element 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 element with a role of `heading`, then use the + text equivalent computation of the element as defined in + accname: Name from Heading. +
    4. +
    5. Otherwise, use the `title` attribute.
    6. +
    7. If none of the above yield a usable text string there is no accessible name.
    8. +
    +
    +
    +

    `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 element with a role of `heading`, then use the + text equivalent computation of the element as defined in + accname: Name from Heading. +
    4. +
    5. Otherwise, use the `title` attribute.
    6. +
    7. If none of the above yield a usable text string there is no accessible name.
    8. +
    +
    +
    +

    Other Section and Grouping Element Accessible Name Computation

    1. If the element has an `aria-label` or an `aria-labelledby` attribute the diff --git a/index.html b/index.html index 0d588ae06..84fdd9b04 100644 --- a/index.html +++ b/index.html @@ -1265,15 +1265,27 @@

      Name From

      having the lowest precedence for specifying a text alternative.
    2. - contents: name comes from the text value of the element node. Although this might be allowed in addition to "author" in some roles, this is used in content only if higher - priority "author" features are not provided. Priority is defined by the Accessible Name and Description Computation [[ACCNAME-1.2]]. + heading: name comes from the text alternative of the first descendant element node (depth-first search) matching the role of heading as defined in the AccName + computation algorithm for nameFrom: heading. Although "namefrom: heading" is allowed in addition to "namefrom: author" in some roles, "namefrom: heading" is used in content only + if higher priority "namefrom: author" features are not provided. Priority is defined by the Accessible Name and Description Computation + [[ACCNAME-1.2]].
    3. +
    4. + contents: name comes from the text value of the element node. Although this might be allowed in addition to "namefrom: author" or "namefrom:heading" in some roles, this + is used in content only if higher priority "namefrom: author" or "namefrom: heading" features are not provided. Priority is defined by the Accessible + Name and Description Computation [[ACCNAME-1.2]]. +
    5. +
    6. Priority is defined by the Accessible Name and Description Computation [[ACCNAME-1.2]].
    7. prohibited: the element does not support name from author. Authors MUST NOT use the aria-label or aria-labelledby attributes to name the element.

    Roles Supporting Name from Author

    +
    +

    Roles Supporting Name from Heading

    +
    +

    Roles Supporting Name from Content

    @@ -1670,7 +1682,12 @@

    Definition of Roles

    Name From: - author + +
      +
    • author
    • +
    • heading
    • +
    + Accessible Name Required: @@ -1886,7 +1903,12 @@

    Definition of Roles

    Name From: - author + +
      +
    • author
    • +
    • heading
    • +
    + Accessible Name Required: @@ -3631,7 +3653,7 @@

    Definition of Roles

    focus to dialogs. See the WAI-ARIA Authoring Practices: Dialog (modal) pattern for additional details on implementing modal dialog design patterns.

    -

    Authors SHOULD provide an accessible name for a dialog, which can be done with the aria-label or aria-labelledby attribute.

    +

    Authors SHOULD provide an accessible name for a dialog, using either namefrom: author or namefrom: heading.

    Authors SHOULD ensure that all dialogs (both modal and non-modal) have at least one focusable descendant element. Authors SHOULD focus an element in the modal dialog when it is displayed, and authors SHOULD constrain keyboard focus to focusable elements within a modal dialog, until dismissed. @@ -3721,7 +3743,12 @@

    Definition of Roles

    Name From: - author + +
      +
    • author
    • +
    • heading
    • +
    + Accessible Name Required: