From a22f2866b7dfc96bc56608a26b197c98df7ed390 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Thu, 7 Nov 2024 16:40:13 -0500 Subject: [PATCH] add naming steps for option this commit also contains commented out content to address https://github.com/w3c/html-aam/issues/568 in a future PR --- html-aam/index.html | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/html-aam/index.html b/html-aam/index.html index 6fd0d4388..8cb50cb54 100644 --- a/html-aam/index.html +++ b/html-aam/index.html @@ -11705,6 +11705,10 @@

`label`

The target element of the `label` attribute has a `LabeledBy` property pointing to the element with the `label` attribute. Participates in name computation. + @@ -11719,7 +11723,12 @@

`label`

Comments - See Also: Accessible Name and Description: Computation and API Mappings 1.1 + + + @@ -16154,6 +16163,26 @@

`fieldset` Element Accessible Name Computation

  • Otherwise, there is no accessible name.
  • +
    +

    `option` Element Accessible Name Computation

    +
      +
    1. + If the `option` 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: use the value of the `option` element's `label` attribute. +
    4. +
    5. Otherwise if no `label` attribute is specified use the `option` element subtree.
    6. +
    7. Otherwise use `title` attribute.
    8. +
    9. If none of the above yield a usable text string there is no accessible name.
    10. +
    +

    + An `option` element's `label` attribute will override the rendering of an `option` element's author defined descendents. Instead, the + value of the element's `label` attribute is used as the visible text label for the `option`. +

    +

    `output` Element Accessible Name Computation

      @@ -16364,6 +16393,10 @@

      Accessible Description Computation

      an `input` element whose `type` attribute is the `button`, `submit` or `reset` state, and it has a `value` attribute, then use the flat string of the attribute if it was not used as the accessible name. +
    1. Otherwise, use the flat string of the `title` attribute if it was not used as the accessible name for the element.