1. 開発者向けのウェブ技術
  2. Web API
  3. Element
  4. ariaRoleDescription

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

View in English Always switch to English

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

ブラウザーの互換性

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /