aria-setsize (property)

aria-setsize property defines total number of items in a list or a treeview. Defining aria-setsize is not required if all elements in the set are present in the DOM.

If all items in a set are present in the document structure, it is not necessary to set aria-setsize attribute, as the user agent can automatically calculate the size of the widget and position for each item. However, if only a portion of the set is present in the document structure at a given point of time, aria-setsize property is needed to provide an explicit indication of number of items in the widget. Also have a look at aria-posinset property.

Values of aria-setsize (property)

The value of aria-setsize property is an integer. Aria-setsize is constant on each individual element on the widget while the aria-posinset value changes. Take care that aria-setsize attribute is defined in each member of the widget not on the container.

Aria-setsize supported roles

Used in roles

Inherits into roles:

Have a look at a sample implementation of aria-setsize property.

3 replies on “aria-setsize (property)”


Contact Us

Maxability Pvt Ltd Flat 360,
Block D2 SLS Signature Appartments,
Kaverappa Layout, Kadubeesanahalli,
Bangalore - 560103.