Element: ariaBusy プロパティ
Baseline
広く利用可能
この機能は広く実装されており、多くのバージョンの端末やブラウザーで動作します。2023年10月以降、すべてのブラウザーで利用可能です。
ariaBusy は Element インターフェイスのプロパティで、要素が変更されているかどうかを示す aria-busy 属性の値を反映します。支援技術は、ユーザーに公開する前に変更が完了するまで待ちたい場合があります。
値
以下のいずれかの値を持つ文字列です。
例
この例では、ID が clock の要素の aria-busy 属性が "false" に設定されています。ariaBusy を使用して、値を "true" に更新します。
html
<div
id="clock"
role="timer"
aria-live="polite"
aria-atomic="true"
aria-busy="false"></div>
js
let el = document.getElementById("clock");
console.log(el.ariaBusy); // false
el.ariaBusy = "true";
console.log(el.ariaBusy); // true
仕様書
| 仕様書 |
|---|
| Accessible Rich Internet Applications (WAI-ARIA)> # dom-ariamixin-ariabusy> |