Element: ariaSetSize property
Baseline 2023Newly available
Since October 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The ariaSetSize
property of the Element
interface reflects the value of the aria-setsize
attribute, which defines the number of items in the current set of listitems or treeitems.
Value
A string containing an integer.
Examples
In this example the aria-setsize
attribute on the element with an ID of tab-id
is set to "3", to inform a device that there are currently 3 tabs in the group. Using ariaSetSize
we update the value to "4".
html
<button
role="tab"
aria-selected="true"
aria-setsize="3"
aria-controls="tabpanel-id"
id="tab-id">
Tab label
</button>
js
let el = document.getElementById("tab-id");
console.log(el.ariaSetSize); // 3
el.ariaSetSize = "4";
console.log(el.ariaSetSize); // 4
Specifications
Specification |
---|
Accessible Rich Internet Applications (WAI-ARIA) # dom-ariamixin-ariasetsize |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ariaSetSize |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.