Element: ariaSetSize プロパティ

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.

ariaSetSizeElement インターフェイスのプロパティで、リスト項目またはツリー項目の現在の設定にある項目の数を定義する aria-setsize 属性の値を反映します。

整数の入った文字列です。

この例では、ID が tab-id である要素の aria-setsize 属性を "3" に設定し、機器にグループ内に現在 3 つのタブがあることを通知しています。ariaSetSize を使用して、値を "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

仕様書

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

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
ariaSetSize

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報