ElementInternals: role プロパティ

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.

roleElementInternals インターフェイスの読み取り専用プロパティで、この要素の WAI-ARIA ロールを返します。例えば、チェックボックスは role="checkbox" を持つ可l脳性があります。

ARIA ロールが入った文字列。ARIA ロールの完全なリストは ARIA テクニックのページにあります。

仕様書

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

ブラウザーの互換性

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
role

Legend

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

Full support
Full support