Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. Element
  4. ariaSetSize

Element: ariaSetSize property

Baseline 2023
Newly available

Since ⁨October 2023⁩, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

TheariaSetSize property of theElement interface reflects the value of thearia-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 thearia-setsize attribute on the element with an ID oftab-id is set to "3", to inform a device that there are currently 3 tabs in the group. UsingariaSetSize we update the value to "4".

html
<button  role="tab"  aria-selected="true"  aria-setsize="3"  aria-controls="tabpanel-id" >  Tab label</button>
js
let el = document.getElementById("tab-id");console.log(el.ariaSetSize); // 3el.ariaSetSize = "4";console.log(el.ariaSetSize); // 4

Specifications

Specification
Accessible Rich Internet Applications (WAI-ARIA)
# dom-ariamixin-ariasetsize

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp