From 1a6fb28622817c91a02c2537d9171b3f6867b2a7 Mon Sep 17 00:00:00 2001 From: Carolyn MacLeod Date: Mon, 21 Sep 2020 16:41:28 -0400 Subject: [PATCH 1/2] Authors SHOULD NOT set aria-selected in single-selection containers where selection follows focus --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index d34106213..61fabbf9a 100644 --- a/index.html +++ b/index.html @@ -12943,6 +12943,7 @@

Definitions of States and Properties (all aria-* attributes)

  • Single-selection containers where the currently focused item is not selected. The selection normally follows the focus, and is managed by the user agent.
  • Multiple-selection containers. Authors SHOULD ensure that any selectable descendant of a container in which the aria-multiselectable attribute is true specifies a value of either true or false for the aria-selected attribute.
  • +

    Authors SHOULD NOT set aria-selected in single-selection containers where selection follows focus.

    Any explicit assignment of aria-selected takes precedence over the implicit selection based on focus. If no DOM element in the widget is explicitly marked as selected, assistive technologies MAY convey implicit selection which follows the keyboard focus of the managed focus widget. If any DOM element in the widget is explicitly marked as selected, the user agent MUST NOT convey implicit selection for the widget.

    From e456923ad3a6c71c1eb05173844e0aea072cbec5 Mon Sep 17 00:00:00 2001 From: Carolyn MacLeod Date: Mon, 21 Sep 2020 17:46:34 -0400 Subject: [PATCH 2/2] - change "SHOULD NOT" to "do not need to" - add case where aria-selected="false" is used on focused item --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 61fabbf9a..5d9cb2592 100644 --- a/index.html +++ b/index.html @@ -12943,7 +12943,7 @@

    Definitions of States and Properties (all aria-* attributes)

  • Single-selection containers where the currently focused item is not selected. The selection normally follows the focus, and is managed by the user agent.
  • Multiple-selection containers. Authors SHOULD ensure that any selectable descendant of a container in which the aria-multiselectable attribute is true specifies a value of either true or false for the aria-selected attribute.
  • -

    Authors SHOULD NOT set aria-selected in single-selection containers where selection follows focus.

    +

    Authors do not need to set aria-selected in single-selection containers where selection follows focus, unless aria-selected="false" is being used on the focused item to indicate that the container does not currently have a selection.

    Any explicit assignment of aria-selected takes precedence over the implicit selection based on focus. If no DOM element in the widget is explicitly marked as selected, assistive technologies MAY convey implicit selection which follows the keyboard focus of the managed focus widget. If any DOM element in the widget is explicitly marked as selected, the user agent MUST NOT convey implicit selection for the widget.