Movatterモバイル変換


[0]ホーム

URL:


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

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

View in EnglishAlways 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   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 byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp