From b963ce2b4578229d74e7b67e1714f032a0e3b27c Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Fri, 4 Oct 2024 14:45:34 -0400 Subject: [PATCH] Update index.html simplifying author's should back to just -1 for indeterminate. core aam / User agents will be where other values are accounted for. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 8768de72f..ed7d1dcd4 100644 --- a/index.html +++ b/index.html @@ -12907,7 +12907,7 @@

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

Defines the number of items in the current set of items, such as listitems, treeitems, options, comments, etc. Not required if all elements in the set are present in the DOM. See related aria-posinset.

This [=ARIA/property=] is marked on the members of a set, not the container element that collects the members of the set. To orient the user by saying an element is "item X out of Y" or similar, the assistive technologies would use X equal to the aria-posinset attribute and Y equal to the aria-setsize attribute.

If all items up to the current item in a set are present in the document structure, it is not necessary to set this attribute, as the user agent can automatically calculate the position for these items. However, if all previous items in the set are not present in the document structure at a given moment, the author MUST set this attributeto provide an explicit indication of an element's position.

-

When specifying aria-setsize, authors MUST set the value to an integer equal to the number of items in the set. If the total number of items is unknown (indeterminate), and the DOM is currently incomplete such that user agents would not be able to compute the correct number of items in a set, authors SHOULD set the value of aria-setsize to a negative number (e.g., -1) or 0.

+

When specifying aria-setsize, authors MUST set the value to an integer equal to the number of items in the set. If the total number of items is unknown (indeterminate), and the DOM is currently incomplete such that user agents would not be able to compute the correct number of items in a set, authors SHOULD set the value of aria-setsize to a -1.

When specifying aria-setsize on a menuitem, menuitemcheckbox, or menuitemradio, authors SHOULD set the value of aria-setsize based on the total number of items in the menu, excluding any separators.

The following example shows items 5 through 8 in a set of 16.

<h2 id="label_fruit"> Available Fruit </h2>