This specification describes the additions to the ARIA 1.2 specification which will make it possible for web authors to programmatically express Element semantics via an IDL interface.
This section is part of the ARIA 1.2 Specification, and is included here for informative purposes only.
Conforming user agents MUST implement the following IDL interfaces.
interface mixin AccessibilityRole { attribute DOMString? role; }; Element implements AccessibilityRole;
User agents MUST
reflect the
role
content attribute as the
role
IDL attribute on
Element
instances.
interface mixin AriaAttributes { attribute DOMString? ariaActiveDescendant; attribute DOMString? ariaAtomic; attribute DOMString? ariaAutoComplete; attribute DOMString? ariaBusy; attribute DOMString? ariaChecked; attribute DOMString? ariaColCount; attribute DOMString? ariaColIndex; attribute DOMString? ariaColSpan; attribute DOMString? ariaControls; attribute DOMString? ariaCurrent; attribute DOMString? ariaDescribedBy; attribute DOMString? ariaDetails; attribute DOMString? ariaDisabled; attribute DOMString? ariaErrorMessage; attribute DOMString? ariaExpanded; attribute DOMString? ariaFlowTo; attribute DOMString? ariaHasPopup; attribute DOMString? ariaHidden; attribute DOMString? ariaInvalid; attribute DOMString? ariaKeyShortcuts; attribute DOMString? ariaLabel; attribute DOMString? ariaLabelledBy; attribute DOMString? ariaLevel; attribute DOMString? ariaLive; attribute DOMString? ariaModal; attribute DOMString? ariaMultiLine; attribute DOMString? ariaMultiSelectable; attribute DOMString? ariaOrientation; attribute DOMString? ariaOwns; attribute DOMString? ariaPlaceholder; attribute DOMString? ariaPosInSet; attribute DOMString? ariaPressed; attribute DOMString? ariaReadOnly; attribute DOMString? ariaRelevant; attribute DOMString? ariaRequired; attribute DOMString? ariaRoleDescription; attribute DOMString? ariaRowCount; attribute DOMString? ariaRowIndex; attribute DOMString? ariaRowSpan; attribute DOMString? ariaSelected; attribute DOMString? ariaSetSize; attribute DOMString? ariaSort; attribute DOMString? ariaValueMax; attribute DOMString? ariaValueMin; attribute DOMString? ariaValueNow; attribute DOMString? ariaValueText; }; Element implements AriaAttributes;
User agents MUST
reflect the following content attributes to each of the corresponding IDL attributes on
Element
instances.
IDL Attribute | Reflected ARIA Content Attribute |
---|---|
ariaActiveDescendant |
|
ariaAtomic |
|
ariaAutoComplete |
|
ariaBusy |
|
ariaChecked |
|
ariaColCount |
|
ariaColIndex |
|
ariaColSpan |
|
ariaControls |
|
ariaCurrent |
|
ariaDescribedBy |
|
ariaDetails |
|
ariaDisabled |
|
ariaErrorMessage |
|
ariaExpanded |
|
ariaFlowTo |
|
ariaHasPopup |
|
ariaHidden |
|
ariaInvalid |
|
ariaKeyShortcuts |
|
ariaLabel |
|
ariaLabelledBy |
|
ariaLevel |
|
ariaLive |
|
ariaModal |
|
ariaMultiLine |
|
ariaMultiSelectable |
|
ariaOrientation |
|
ariaOwns |
|
ariaPlaceholder |
|
ariaPosInSet |
|
ariaPressed |
|
ariaReadOnly |
|
ariaRelevant |
|
ariaRequired |
|
ariaRoleDescription |
|
ariaRowCount |
|
ariaRowIndex |
|
ariaRowSpan |
|
ariaSelected |
|
ariaSetSize |
|
ariaSort |
|
ariaValueMax |
|
ariaValueMin |
|
ariaValueNow |
|
ariaValueText |
|
Note: Attributes
Though specification authors may make exceptions to this pattern, the following rules were used to disambiguate names and case of the IDL attributes listed above.
ariaDescribedBy
with both the D and B capitalized.ariaMultiSelectable
with both the M and S capitalized.ariaMultiLine
with both the M and L capitalized.ariaPlaceholder
with only the P capitalized.Any notes or exceptions for specific attribute names will be listed here.
ariaPosInSet
: The
ariaPosInSet
with the P, I, and second S capitalized,
not
ariaPosInset
.Editor's Note: Should we make an exception on the spelling of "placeholder" and capitalize the H anyway? Some developers
will expect this to be
ariaPlaceHolder
despite the fact that it's not a hyphenated word.
The primary purpose of ARIA IDL attribute reflection is to ease JavaScript-based manipulation of values. The following examples demonstrate its usage.