diff --git a/html-aam/index.html b/html-aam/index.html index ca3f951e6..65011be53 100644 --- a/html-aam/index.html +++ b/html-aam/index.html @@ -4647,7 +4647,10 @@

`legend`

Roles: `ROLE_SYSTEM_STATICTEXT`; `IA2_ROLE_LABEL`
-
Relations: `IA2_RELATION_LABEL_FOR` with the parent `fieldset`
+
+ Relations: `IA2_RELATION_LABEL_FOR` with the parent `fieldset` + or `optgroup` +
@@ -4657,7 +4660,8 @@

`legend`

Other properties: The `LabeledBy` property for the parent - `fieldset` points to the UIA element for the `legend` element. + `fieldset` or `optgroup` points to the + UIA element for the `legend` element.
@@ -4667,7 +4671,8 @@

`legend`

Role: `ATK_ROLE_LABEL`
Relations: - `ATK_RELATION_LABEL_FOR` with parent `fieldset` element + `ATK_RELATION_LABEL_FOR` with parent `fieldset` + or `optgroup` element
@@ -16141,12 +16146,34 @@

`fieldset` Element Accessible Name Computation

  • 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. + child that is a legend element, then use the subtree of the first such element in the accessibility tree.
  • If the accessible name is still empty, then:, if the `fieldset` element has a `title` attribute, then use that attribute.
  • Otherwise, there is no accessible name.
  • +
    +

    `optgroup` Element Accessible Name Computation

    +
      +
    1. + If the `optgroup` 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 `optgroup` element has a + child that is a legend element, then use the subtree of the first such element in the accessibility tree. +
    4. +
    5. + If the accessible name is still empty, and there is no child `legend` element, then: + if the `optgroup` element has a label attribute use the value of that attribute, which renders as the visible label of the `optgroup`. +
    6. +
    7. + If the accessible name is still empty, then: if the `optgroup` element has a `title` attribute, then use that attribute. +
    8. +
    9. Otherwise, there is no accessible name.
    10. +
    +

    `output` Element Accessible Name Computation

      @@ -16349,6 +16376,19 @@

      Accessible Description Computation

      text equivalent computation of the subtree of the first `caption` element if it was not used as the accessible name. +
    1. + an `optgroup` element which has a visible label rendered by its `label` attribute, a child `legend` element, or both: +
        +
      1. + use the value of the `label` attribute if it was not used as the + accessible name +
      2. +
      3. + or use the text equivalent computation of the subtree of the + first `legend` element if it was not used as the accessible name. +
      4. +
      +
    2. a `summary` element, use the text equivalent computation of its subtree if it was not used as the accessible name.