From 269f3e262db1fbfd040ae1b5db4d398927396485 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Fri, 27 Sep 2024 13:20:07 -0400 Subject: [PATCH 1/4] Addition: selectedoption element I recreated the [original PR](https://github.com/w3c/html-aam/pull/566) by @josepharhar The `` element is part of the [customizable select feature](https://github.com/whatwg/html/issues/9799) and is being added to HTML [here](https://github.com/whatwg/html/pull/10633). ## Implementation * WPT tests: https://github.com/web-platform-tests/wpt/pull/45096 * Implementations (link to issue or when done, link to commit): * WebKit: TODO * Gecko: TODO * Blink: https://chromium.googlesource.com/chromium/src/+/18b5eac27b14b409503aa8047cf9358082a0e0df Co-authored-by: Joey Arhar @josepharhar --- html-aam/index.html | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/html-aam/index.html b/html-aam/index.html index ca3f951e6..001b24021 100644 --- a/html-aam/index.html +++ b/html-aam/index.html @@ -6343,6 +6343,56 @@

`select` (with NO `multiple +

`selectedoption`

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HTML Specification + `selectedoption` +
[[wai-aria-1.2]]???
Computed Role
Use WAI-ARIA mapping
+ MSAA + IAccessible2 + +
???
+
UIA +
???
+
ATK +
???
+
AX +
???
+
Comments

`slot`

From d1c9f9da6bdf04a6874a6dbcabc7aca4722f651c Mon Sep 17 00:00:00 2001 From: scottaohara Date: Fri, 27 Sep 2024 17:21:55 +0000 Subject: [PATCH 2/4] chore: prettier --- html-aam/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html-aam/index.html b/html-aam/index.html index 001b24021..361a79322 100644 --- a/html-aam/index.html +++ b/html-aam/index.html @@ -6354,7 +6354,10 @@

`selectedoption`

- + From cf0e63a1b33528f6f0e38efb24d838febdb144be Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Wed, 11 Dec 2024 17:05:57 -0500 Subject: [PATCH 3/4] update PR with element name change and attr expectations - update pr from selectedoption to selectedconent - map to the generic role (in the event someone misuses the element and declares it outside of its expected location, as a child of the button part within a select. - note that in its intended usage, the button part will be inert, and thus any global html or aria attributes used on the element would not be exposed to the a11y api --- html-aam/index.html | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/html-aam/index.html b/html-aam/index.html index 361a79322..c66979067 100644 --- a/html-aam/index.html +++ b/html-aam/index.html @@ -6343,20 +6343,19 @@

`select` (with NO `multiple

[[wai-aria-1.2]]??? + ??? + +
Computed Role
-

`selectedoption`

- +

`selectedcontent`

+
@@ -6368,31 +6367,37 @@

`selectedoption`

MSAA + IAccessible2 - +
HTML Specification - `selectedoption` + `selectedcontent`
[[wai-aria-1.2]] - ??? - +
-
???
+
Use WAI-ARIA mapping
UIA -
???
+
Use WAI-ARIA mapping
ATK -
???
+
Use WAI-ARIA mapping
AX -
???
+
Use WAI-ARIA mapping
Comments +

The `selectedcontent` element is meant to be declared as a child of the `button` part of a custom styled `select` element. + As the `button` part is meant to be treated as inert, the `selectedcontent` element will commonly be treated as inert, as well.

+

+ As the parent `button` element to the `selectedcontent` element is meant to be treated as inert, any use of global HTML or ARIA attributes, or attributes specific to the `selectedcontent` element would not be exposed to the user agent's accessibility API. +

+
From 7038da80f83a44ea6acb4fe1ee00c379f80a5bf5 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Thu, 6 Feb 2025 15:29:10 -0500 Subject: [PATCH 4/4] revise wording of comment section content --- html-aam/index.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/html-aam/index.html b/html-aam/index.html index c66979067..dc99cbf47 100644 --- a/html-aam/index.html +++ b/html-aam/index.html @@ -6392,10 +6392,14 @@

`selectedcontent`

Comments -

The `selectedcontent` element is meant to be declared as a child of the `button` part of a custom styled `select` element. - As the `button` part is meant to be treated as inert, the `selectedcontent` element will commonly be treated as inert, as well.

+

The `selectedcontent` element is a declarable child of the `button` part of a custom styled `select` element. + The `button` part of the `select` element's anatomy, and thus the `selectedcontent` element descendant, are inert.

+

+ The text equivalent computation of the subtree of the `selectedcontent` + element participates in the calculation of the `select` element's accessible value. +

- As the parent `button` element to the `selectedcontent` element is meant to be treated as inert, any use of global HTML or ARIA attributes, or attributes specific to the `selectedcontent` element would not be exposed to the user agent's accessibility API. + As part of the anatomy of a customized `select` element, the ancestor `button` element to the `selectedcontent` element is inert, any use of global HTML or ARIA attributes, or attributes specific to the `selectedcontent` element are not to be exposed to the user agent's accessibility API.