Confirmed users
1,396
edits
(→Roles) |
|||
Line 2,230: | Line 2,230: | ||
sequence<DOMString> states; | sequence<DOMString> states; | ||
Object attributes; | Object attributes; | ||
sequence<DOMString> actions; | |||
}; | }; | ||
</pre> | </pre> | ||
Line 2,252: | Line 2,253: | ||
RoleTaxon .''attributes'' | RoleTaxon .''attributes'' | ||
::List of attributes supported by the role. Default value of the attribute may be specified as modifier. For example, "live:polite" points out that "live" object attribute has "polite" value by default. If default value is not specified then it's taken from referred attribute taxon description. | ::List of attributes supported by the role. Default value of the attribute may be specified as modifier. For example, "live:polite" points out that "live" object attribute has "polite" value by default. If default value is not specified then it's taken from referred attribute taxon description. | ||
RoleTaxon ..''actions'' | |||
::List of supported actions. Actions from the list are exposed on the accessible element depending on states present on it. For example, if supported actions are "check" and "uncheck", then "check" is exposed if the accessible element doesn't have "checked" state, otherwise "unchecked". | |||
</code> | </code> | ||
<b>Example. ARIA <code>textbox</code> role</b> | <b>Example. ARIA <code>textbox</code> role.</b> | ||
<pre> | <pre> | ||
Line 2,276: | Line 2,280: | ||
}; | }; | ||
</pre> | </pre> | ||
<b>Example. ARIA <code>checkbox</code> role.</b> | |||
<pre> | |||
var taxa = { | |||
checkbox: { | |||
description: "checkbox", | |||
parents: [ "input" ], | |||
states: [ "checkable:default, "checked" ], | |||
actions: [ "check", "uncheck" ] | |||
} | |||
}; | |||
</pre> | |||
<b>Example. ARIA <code>log</code> role.</b> | <b>Example. ARIA <code>log</code> role.</b> | ||
Line 2,289: | Line 2,308: | ||
}; | }; | ||
</pre> | </pre> | ||
====States==== | ====States==== |