ARIA DOM Properties: Getting Values

Getting ARIA Role
Attribute role
getAttribute var role = e.getAttribute("role");
DOM Property (ARIA 1.2) var role = e.role;1
Getting aria-label property
Attribute aria-label
getAttribute var label = e.getAttribute("aria-label");
DOM Property (ARIA 1.2) var label = e.ariaLabel;1
Getting aria-checked State
Attribute aria-checked
setAttribute var value = e.getAttribute("aria-checked");
DOM Property (ARIA 1.2) var value = e.ariaChecked;1

1NOTE: Currently must be set using the AOM DOM property to return a value reliably and as in setting only available on the most recent browser releases.