Element: ariaRoleDescription プロパティ

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.

ariaRoleDescriptionElement インターフェイスのプロパティで、要素のロールに関する人間が読み取り可能な、作者がローカライズした説明を定義する aria-roledescription 属性の値を反映します。

文字列です。

この例では、ID が myApplication である要素の aria-roledescription 属性が設定されています。ariaRoleDescription を用いて値を更新することができます。

html
<div
  id="myApplication"
  role="application"
  aria-roledescription="a description of this widget"></div>
js
let el = document.getElementById("myApplication");
console.log(el.ariaRoleDescription); // "a description of this widget"
el.ariaRoleDescription = "an updated description of this widget";
console.log(el.ariaRoleDescription); // "an updated description of this widget"

仕様書

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

ブラウザーの互換性

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
ariaRoleDescription

Legend

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

Full support
Full support