Baseline 2023
Newly available
The ariaRoleDescription
property of the Element
interface reflects the value of the aria-roledescription
attribute, which defines a human-readable, author-localized description for the role of an element.
A string.
ExamplesIn this example the aria-roledescription
attribute on the element with an ID of myApplication
has been set. Using ariaRoleDescription
we can update the value.
<div
id="myApplication"
role="application"
aria-roledescription="a description of this widget">
â¦
</div>
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"
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4