このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

Element: ariaBusy プロパティ

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.

ariaBusyElement インターフェイスのプロパティで、要素が変更されているかどうかを示す aria-busy 属性の値を反映します。支援技術は、ユーザーに公開する前に変更が完了するまで待ちたい場合があります。

以下のいずれかの値を持つ文字列です。

"true"

この要素は更新中です。

"false"

この要素には更新の予定はありません。

この例では、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

仕様書

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

ブラウザーの互換性