Accessibility/WebAccessibilityAPI: Difference between revisions

Jump to navigation Jump to search
Line 176: Line 176:
====Attribute list====
====Attribute list====


A typical accessible element may support the following attributes:
Set of exposed attributes depends on semantics of the element. As example typical attributes are:


<code>
<code>
int ''groupSize'';
DOMString ''autocomplete'';
::Returns a number of items withing the group this accessible element belongs to. If no group then -1.
::Exposed on text fields. Values are ''list'', ''none'', ''inline'', ''both''.


int ''indexInGroup'';
DOMString ''live'';
::Returns an index in the group this accessible element belongs to. If no group then -1.
::Points that the accessible is live region. Values are ''assertive'' and ''polite''.


int ''level'';
DOMString ''relevant'';
::Returns level in hierarchy the accessible element belongs to. -1 if doesn't belong to any hierarchy.
::Lists all notifications that qualifies for live region.
</code>
</code>
<code>
int ''minvalue'';
::Returns minimum possible value.
int ''maxvalue'';
::Returns maximum possible value;
int ''step'';
::Returns step value (iteration between next values).
</code>


===Patterns===
===Patterns===
Confirmed users
1,396

edits

Navigation menu