Interface Description Language (IDL): Getting Values

Getting ARIA Role
Attribute role
getAttribute var role = e.getAttribute("role");
DOM Property (ARIA 1.2) var role = e.role;
Getting aria-label attribute.
Attribute aria-label
getAttribute var label = e.getAttribute("aria-label");
DOM Property (ARIA 1.2) var label = e.ariaLabel;

NOTE: Getting the aria-label attribute is not the same as getting the computed accessible name.

Getting State
Attribute aria-checked
setAttribute var value = e.getAttribute("aria-checked");
DOM Property (ARIA 1.2) var value = e.ariaChecked;