From ebdf3a654f4d97a9a6322ba636533e02f8978324 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Tue, 22 Oct 2024 13:56:07 -0400 Subject: [PATCH] Update: legend to provide name to optgroup In regards to the updated content model for the select element and its allowed children, an `optgroup` can have a `legend` element as its first child, and this `legend` needs to be able to name the `optgroup` similarly to how a `legend` names a `fieldset`. see: https://github.com/whatwg/html/pull/10586 --- html-aam/index.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/html-aam/index.html b/html-aam/index.html index ca3f951e6..4594a1017 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