Copyright © 2007 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
Accessibility is often dependent on Assistive Technology (AT), tools that provide alternate modes of access for people with disabilities by transforming complex user interfaces into an alternate presentation. This transformation requires information about the role, state, and other semantics of specific portions of a document to be able to transform them appropriately. Rich Web applications typically rely on hybrid technologies such as DHTML and AJAX that combine multiple technologies: SVG, HTML, CSS, and JavaScript for example. The various technologies provide much but not all of the information needed to support AT adequately. This specification provides a Web-standard way to identify roles in dynamic Web content. The result is an interoperable way to associate behaviors and structure with existing markup.
This document and the States and Properties Module for Accessible Rich Internet Applications (WAI-ARIA States and Properties) [ARIA-STATE] fill information gaps identified by the Roadmap for Accessible Rich Internet Applications (WAI-ARIA Roadmap) [ARIA-ROADMAP]. The role attribute defined in the XHTML Role Attribute Module [XHTML-ROLES] is the preferred way to expose these roles in XHTML applications. This specification provides an ontology of roles that can be used to improve the accessibility and interoperability of Web Content and Applications.
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This document is a Working Draft by the Protocols & Formats Working Group of the Web Accessibility Initiative. The Working Group believes engineering is mostly complete. This draft is being published to allow for public review prior to entering finalization stages, and to support ongoing discussion with other Working Groups about the impact of this specification on other W3C technologies. There is expanded information for roles about supported properties from the States and Properties Module for Accessible Rich Internet Applications (WAI-ARIA Roles) [ARIA_STATE]. An expanded definition section attempts to clarify the usages of particular terms used in this suite. Refer to the history of changes to WAI-ARIA Roles for more details.
The Working Group believes that a complete understanding of this document requires an in-depth understanding of the mechanics of assistive technology that most implementors would not be expected to have. Therefore the Working Group is developing a set of Best Practices, which are still only in draft form but expected to be published the next time this document is updated. Where topics appear to be unclear, please consider that document as one of the potential places of clarification.
This version of the document presents details for roles in two forms. The main form is tabular, and a version using definition lists is provided in an appendix. There are questions about the accessibility and efficacy of both these forms, and the Working Group seeks feedback, particulary from reviewers with disabilities, about which version is more successful.
Feedback on the model set out here is important to the success of the Web community in creating accessible Rich Internet Applications. The PFWG would like to know, in particular:
When addressing these questions, please consider them in the context of the companion documents mentioned above in the abstract. Comments on this document may be sent to public-pfwg-comments@w3.org (Archive). The Working Group requests that comments be made by 16 November 2007.
To assist you in your review, refer to the history of changes to WAI-ARIA Roles.
Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
The disclosure obligations of the Participants of this group are described in the charter.
This section is informative.
The domain of Web accessibility defines how to make Web content usable by people with disabilities. People with some types of disabilities use Assistive Technology (AT) to interact with content. AT can transform the presentation of content into a format more suitable to the user, and can allow the user to interact in different ways than the author designed. In order to accomplish this, AT must understand the semantics of the content. Semantics are knowledge of roles, states, and properties, as a person would understand them, that apply to elements within the content. For instance, if a paragraph is semantically identified as such, AT can interact with it as a unit separable from the rest of the content, knowing the exact boundaries of that paragraph. A slider or tree control is a more complex example, in which various parts of a widget each have semantics that must be properly identified for the computer to support effective interaction.
Established content technologies define semantics for elements commonly used in those technologies. However, new technologies can overlook some of the semantics required for accessibility. Furthermore, new authoring practices evolve which override the intended semantics—elements that have one defined semantic meaning in the technology are used with a different semantic meaning intended to be understood by the user.
For example, Rich Internet Applications developers can create a tree control in HTML using CSS and JavaScript even though HTML lacks a semantic element for that. A different element must be used, possibly a list element with display instructions to make it look and behave like a tree control. Assistive technology, however, must re-present the element in a different modality and the display instructions may not be applicable. The AT will present it as a list, which has very different display and interaction from a tree control, and the user may be unsuccessful at understanding and operating the control.
The incorporation of Roles for Accessible Rich Internet Applications is a way for an author to provide proper type semantics on custom widgets (elements with repurposed semantics) to make these widgets accessible, usable and interoperable with assistive technologies. This specification identifies the types of widgets and structures that are recognized by accessibility products, by providing an ontology of corresponding roles that can be attached to content. This allows elements with a given role to be understood as a particular widget or structural type regardless of any semantic inherited from the implementing technology. Roles are a common property of platform Accessibility APIs which applications use to support assistive technologies. Assistive technology can then use the role information to provide effective presentation and interaction with these elements.
This role taxonomy currently includes interaction widget (user interface controls) and structural document (content organization) objects. The role taxonomy describes inheritance (widgets that are types of other widgets) and details what states and properties each role supports. When possible, information is provided about mapping of roles to accessibility APIs.
Roles are element types and should not change with time or user actions. Changing the role on an element from its initial value will confuse an assistive technology. Platform accessibility APIs, to which the roles are mapped by the browser, do not provide a vehicle to notify the assistive technology of a role type changing. If the old element type is be replaced by a new one, the corresponding element and its subtree should be removed from the document and a new one inserted containing the new role type.
Properties that change with time and events are described in States and Properties Module for Accessible Rich Internet Applications [ARIA-STATE]. ARIA States and Properties is a complementary specification to ARIA Roles. Elements with certain roles from this specification have certain states and properties from ARIA States and Properties.
In addition to the prose documentation, the role taxonomy is provided in Web Ontology Language (OWL) [OWL], which is an implementation of Resource Description Framework (RDF) [RDF]. Tools can use these to validate the implementation of roles in a given content document.
Note: the use of RDF/OWL as a formal representation of roles is intended to support future extensibility. Standard RDF/OWL mechanisms can be used to define new roles that inherit from the roles defined in this specification. The mechanism to define and use role extensions in an interoperable manner, however, is not defined by this specification. A future version of ARIA Roles is expected to define how to extend roles.
This section is informative.
This draft currently handles two aspects of roles: GUI functionality and structural relationships of the element. For more information see the Roadmap for Accessible Rich Internet Applications for the use of roles in making interactive content accessible.
This taxonomy is designed in-part to support the common roles found in platform accessibility APIs. Reference to roles found in this taxonomy by dynamic Web content may be used to support interoperability with assistive technologies.
The schema to support this standard has been designed to be extended so that custom roles can be created by extending base roles. This allows user agents to support at least the base role, and user agents that support the custom role can provide enhanced access. Note that much of this could be formalized in XML Schema [XSD]. However, being able to define similarities between roles, such as baseConcepts and more descriptive definitions would not be available in XSD. While this extensibility is possible, this version of the specification does not define how this extension is to be achieved.
This section is informative.
While some terms are defined in place, the following definitions are used throughout this document. Familiarity with W3C XHTML 1.1 Recommendation [XHTML] and the W3C XML 1.0 Recommendation [XML] is highly recommended to understand these definitions.
Operating systems and other platforms provide a set of interfaces that expose information about objects and events to assistive technology. Assistive technology uses these interfaces to get information about and interact with those controls. Examples of this are the Java Accessibility API [JAPI], Microsoft Active Accessibility [MSAA], Apple Accessibility for COCOA [AAC], the Gnome Accessibility Toolkit (ATK) [GAP], and IAccessible2 [IA2].
Hardware and/or software that acts as a user agent, or along with a mainstream user agent, to provide services to meet the requirements of users with disabilities that go beyond those offered by the mainstream user agents.
Services provided by assistive technology include alternative presentations (e.g., as synthesized speech or magnified content), alternative input methods (e.g., voice), additional navigation or orientation mechanisms, and content transformations (e.g., to make tables more accessible).
Assistive technologies often communicate data and messages with mainstream user agents by using and monitoring APIs.
The distinction between mainstream user agents and assistive technologies is not absolute. Many mainstream user agents provide some features to assist individuals with disabilities. The basic difference is that mainstream user agents target broad and diverse audiences that usually include people with and without disabilities. Assistive technologies target narrowly defined populations of users with specific disabilities. The assistance provided by an assistive technology is more specific and appropriate to the needs of its target users. The mainstream user agent may provide important services to assistive technologies like retrieving Web content from program objects or parsing markup into identifiable bundles.
Examples of assistive technologies that are important in the context of this document include the following:
In this specification, attribute is used as it is in markup languages. Attributes are structural features added to elements to provide information about the states and properties of the object represented by the element.
An assertion which can be a constraint.
An abstract type of object.
In this specfication, element is used as it is in markup languages. Elements are the structural elements in markup language that contains the data profile for objects.
A programmatic message used to communicate discrete changes in the state of an object to other objects in a computational system. User input to a web page is commonly mediated through abstract events that describe the interaction and can provide notice of changes to the state of a document object.
A collection of related names. Qualifying a name in terms of the namespace to which it belongs allows these names to be distinguished from names in other namespaces that are spelled alike. Namespaces in this document are used in accordance with Namespaces in XML [XML-NAMES].
A "thing" in the perceptual user experience, instantiated in markup languages by one or more elements, and converted into the object-oriented pattern by user agents. Objects are instances of abstract classes, which defines the general characteristics of object instances. A single DOM object may or may not correspond with a single object in accessibility API. An object in accessibility API encapsulates one ore more DOM objects.
Attributes that are essential to the nature of a given object. As such, they are less likely to change than states; a change of a property may significantly impact the meaning or presentation of an object. Properties mainly provide limitations on objects from the most general case implied by roles without properties applied.
A fact connecting two distinct, articulable things. Relationships may be of various types to indicate which object labels another, controls another, etc.
An indicator of type. The object's role is the class of objects of which it is a member. This semantic association allows tools to present and support interaction with the object in a manner that is consistent with user expectations about other objects of that type.
A state is a dynamic property expressing characteristics of an object that may change in response to user action or automated processes. States do not affect the essential nature of the object, but represent data associated with the object or user interaction possibilities.
Any software that retrieves and renders Web content for users, such as Web browsers, media players, plug-ins, and other programs including assistive technologies that help retrieve and render Web content.
A literal that concretizes the information expressed by a state or property.
This section is informative.
Alternate input devices are helped when all content is keyboard accessible. The tabindex changes achieve this. The new semantics when combined by our style guide work will allow alternate input solutions to facilitate command and control on via an alternate input solution.
Low vision solutions benefit from ARIA markup in that the improved keyboard navigation helps people with extremely low vision. Low vision solutions offer a degree of screen reading functionality (like AI Squared's Zoom text). Furthermore, ARIA introduces navigation landmarks both through our taxonomy and the XHTML role landmarks which dramatically improves keyboard navigation productivity. This is a huge benefit for alternate input solutions as well.
ARIA will also be used to assist people with cognitive impairments. The additional semantics will allow us to restructure and substitute alternative content in adaptive Web 2.0 solutions. We are doing this on the FLUID project. In FLUID we will be incorporating ARIA technology into uPortal and Sakai. Support for cognitive impairment is absolutely critical.
This section is informative.
This section is informative.
Complex user interfaces become inaccessible because assistive technologies that provide alternative access, are often left guessing at the semantics behind portions of a document (see the Roadmap for Accessible Rich Internet Applications [ARIA-ROADMAP]). Associating an element in the document to a role in this taxonomy associates all the information about that role that has been defined in this specification.
Roles defined in this specification descend from and complement the roles defined in the XHTML Role Attribute Module [XHTML-ROLES].
Roles in this specification are defined with RDF/OWL to build rich description of the expected behaviors of the role. For example:
Hence referencing a role from the role taxonomy to an element in the document gives assistive technology the information it needs to handle an element correctly.
The Roles Taxonomy uses the XML Namespace [XMLNAMES] identifier
http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#
All examples are informative. Examples in this document that use the XML Namespace prefix "wairole" all assume a valid xmlns declaration in the document involved such as:
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
In this example a span has been used to create a tri-state checkbox (a
checkbox control that has three possible states). A role is used to make the
behavior of this simple widget known to the user agent. Properties that may
change with user actions (such as checked) use States
and Properties Module for Accessible Rich Internet Applications ([ARIA-STATE], Section 3.1.1.1).
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xmlns:aaa="http://www.w3.org/2005/07/aaa" >
<head></head>
<body>
<span class="checkbox" id="chbox1" role="wairole:checkbox" aaa:checked="mixed"
onkeydown="return checkBoxEvent(event);" onclick="return checkBoxEvent(event);" tabindex="0" >
A checkbox label
</span>
</body>
</html>
In this example the support schema will define a checkbox as a type of option (which itself is defined as a type of input). Although it inherits all the supported states of an option, we also expect it to support checked set to "mixed".
This section provides a brief introduction to the process of making applications accessible using the ARIA Roles specification. The choice and usage of roles can be complex and context dependent. It is beyond the scope of this document to explain all possible use cases. ARIA Best Practices will provide expanded usage recommendations.
An application becomes accessible when:
Roles make the different elements in the application semantically rich. User agents use the role semantics to understand how to handle each element. Roles can be used to build accessible applications by providing any missing information that the assistive technology needs to anticipate the behavior of the elements inside the application.
For example, to support an accessible Web application, the browser will use the semantics from the ARIA markup in the Web application and the platform accessibility API to create accessible objects which map to native operating system widgets. In this way, the assistive technology will be able to communicate easily to the end user how to interact with each object in the Web application.Use the semantic elements that are defined in the native markup language. For example, with XHTML it is better to use the native checkbox than to use a div element with role checkbox. Because properly used content can already be repurposed, roles are best used when the mark up language does not support all the semantics required. When a role is used the semantics and behavior of the element are overridden by the role behavior.
Set roles to make sure elements behave predictably and correctly describe the behavior of each element within the application (unless elements behaviors are fully described by the native markup language). Roles for interactive elements should support all the states that the element could use. Once a role attribute is set it should not be changed as this will confuse an assistive technology. This does not preclude a document element being removed which has the role attribute set. Only states and properties may be changed for a given document element.
Look for groups within a page, and mark them using the most appropriate role that best describes their usage.
For example: a region of the page that contains a group of elements that are likely to change through an AJAX application could be tagged as a region.
Look for relationships between groups and elements, and mark them using the most appropriate property or attribute. See relationships in ARIA states.
Sometimes the relationships can be made clear via the native mark up language, such as the label tag in HTML.
Sometimes this can be implied via the DOM, and the relationship automatically exposed to accessibility APIs by the user agent. For example, when a well marked up list contains list items it is known that they belong to the containing list. In such cases it is not necessary to set additional properties to make that explicit.
In other cases use the States and Properties Module for Accessible Rich Internet Applications to state relationships. For example: If container A contains search results, and container B contains the search controls, then mark each container as a region and set the controls property in region B to reference region A.
Once the correct role for an element has been set, select the appropriate states and properties for that role during the element's life cycle. States are special properties for widgets that may change frequently during a widget's life cycle due to user interaction, while properties are more stable attributes of objects. User agents should notify assistive technology of state changes. Conversely, assistive technology notification of property changes depends on the method by which an assistive technology communicates with the user agent. For example, the multiline property is not something that changes frequently, whereas the checked state changes frequently in response to user input.
When setting states and properties, follow these guidelines:
An important addition in ARIA States and Properties is the new extensions for tabindex, allowing it to be applied to any visible element, not just the limited set of elements permitted by HTML. This allows the author to give any element keyboard focus, not just form elements or anchors. This introduces a needed paradigm shift for rich internet applications to behave like their GUI counterparts in an accessible manner, allowing users to use tab or keyboard mnemonics to move focus to widgets on the Web page, and then use the arrow keys to navigate within an object. The tabindex change enables full support of User Agent Accessibility Guidelines ([UAAG]).
Associate style sheet selectors [CSS, Section 5] with accessibility states and properties so that as states change, the view of the page changes in unison. This reduces unneeded scripting and helps with accessibility. For example, the author should have an associated selector that responds to a form element being required or a gridcell being selected.
Conforming user agents will notify assistive technologies of changes in states. Synchronizing the information given to assistive technologies with changes in style rendering allows for consistency, and avoids accessibility bugs. This is a powerful use of ARIA states and properties for browsers supporting the appropriate level of style sheets.
Some platform accessibility APIs provide events for applications to notify the assistive technology when pop-ups such as menus, alerts, and dialogs come into view or go away. Rich Internet Applications can assist browsers which support these conventions by:
Creating an entire section and then insert it into the [DOM], as a subtree of the parent element activated to show the pop-up, and then removing the section from the inserted area when the pop-up goes away.
ORUsing the following style sheet properties to show and hide document sections being used to represent the pop-up items, menus or dialogs:
display:blockdisplay:nonevisibility:visiblevisibility:hiddenBy monitoring these behaviors a user agent may use this information to notify assistive technology that the pop-up has occurred by generating the appropriate accessibility API event.
Some assistive technologies may use the DOM directly to determine these when pop-up occurs. In this case, the first mechanism of writing a section to the DOM would work using the DOM events.
This section is informative.
A basic tree view allows the user to select different list items and expand and collapse embedded lists. Arrow keys are used to navigate through a tree, including left/right to collapse/expand sub trees. Double clicking with the mouse also toggles expansion.
Building this user interface element with script could leave assistive technology guessing about the role of each element. To make this feature accessible we need to:
We can do that by following the steps below:
There is no tree element in XHTML 1.0 that supports our behavior including expansion. If such an element existed, we should use that to take advantage of existing support. Since it does not, we will need to use roles. Therefore, our first step is setting roles.
As we did not find the role of the elements used in our example in the native mark up we need to add roles that do this by referencing roles from this taxonomy that support states that we need.
Our tree will need roles that support embedded list behavior and expandable/collapsible embedded lists. The roles that support tree behavior for a tree are:
Tree relationships can be made simply via the DOM and logical structure of the page.
A tree element will be the main container containing all other elements in the tree.
Each selectable item in the tree will be a treeitem.
When a treeitem contains an embedded list of treeitems they will be all embedded in a group. A group should be contained inside the tree item that is the parent item.
Tree relationships are like list relationships in XHTML. Group and tree elements act like list containers (OL and UL). A tree item acts like a list item (li) in XHTML.
Because treeitems and groups commonly both use div elements it is recommended to add a comment next to closing treeitems that contain embedded tree groups.
<div role="wairole:tree" >
<div role="wairole:treeitem" >Veggies
<div role="wairole:group">
<div role="wairole:treeitem">Green
<div role="wairole:group">
<div role="wairole:treeitem">Asparagus</div>
<div role="wairole:treeitem">Kale</div>
<div role="wairole:treeitem" >Leafy
<div role="wairole:group">
<div role="wairole:treeitem">Lettuce</div>
<div role="wairole:treeitem">Kale</div>
<div role="wairole:treeitem">Spinach</div>
<div role="wairole:treeitem">Chard</div>
</div>
</div> ---close leafy
<div role="wairole:treeitem">Green beans</div>
</div>
</div> ---close green
<div role="wairole:treeitem">Legumes</div>
<div role="wairole:treeitem" >Yellow
<div role="wairole:group">
<div role="wairole:treeitem">Bell peppers</div>
<div role="wairole:treeitem">Squash</div>
</div>
</div> ---close yellow
</div>
</div> ---close veggies
</div> ---close tree
Sometimes a tree structure is not explicit via the DOM and logical structure of a page. In such cases the relationships must still be made explicit using the States and Properties Module.
Example:
<div role="wairole:treeitem" aaa:haschild="yellowtreegroup">Yellow<div> … <div id="yellowtreegroup" role="wairole:group"> <div role="wairole:treeitem">Bell peppers</div> <div role="wairole:treeitem">Squash</div> … </div>
Control the behavior of the element using XML Events [XML-EVENTS] and States.
For example, use the aaa Namespace [XML-NAMES] with supporting scripts to control which tree elements are expanded
<div tabindex="-1" role="wairole:treeitem" aaa:expanded="true">Yellow</div>
And use device independent events with supporting JavaScript to handle user interaction.
<div role="wairole:tree" tabindex="-1" onfocus="return treeItemFocus(event);" onclick="return treeItemEvent(event);" ondblclick="return treeItemEvent(event);" onkeydown="return treeItemEvent(event);" onkeypress="return treeItemEvent(event);">
Then create JavaScript support to control the event driven behavior of the application.
This section is informative.
Roles are provided in XML-based languages using an attribute designated for the purpose. Roles from this ontology are indicated as values of that role attribute. In order to indicate that the roles are used as specified in this document, the document must use the following namespace in the attribute value: http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#.
Generally this namespace is declared on the root element of the document as specified in XML Namespaces [XML-NAMES]. Examples in this document use the namespace prefix “wairole” to indicate this namespace.
For example, the start tag of a root element that includes the appropriate namespace declaration might look like:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#" >
XHTML 1.1 and higher provides the XHTML Role Attribute Module [XHTML-ROLES] to attach roles to documents. Include this module as defined in the Role Attribute specification, and then use the “role” attribute as needed. Use the namespace prefix defined in the root element, and values for the attribute from the ontology above. For example:
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml "xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"><body> <table id="table1" role="wairole:grid"> </table> </body></html>
XHTML 1.0 does not support DTD modularization. It is therefore necessary to provide the role attribute using its own namespace. For example:
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml10="http://www.w3.org/1999/xhtml" xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"><body> <table id="table1" xhtml10:role="wairole:grid"> </table> </body></html>
Other XML languages may provide their own role attribute facility. Use that language feature when available. If the language does not provide a role attribute, DTD modularization can be used to include the XHTML Role Attribute Module [XHTML-ROLES]. For example:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#" >
There is no normative way to apply roles in HTML, but it is recommended to use the HTML implementation technique.
This section is normative.
This specification defines a Taxonomy called Roles. The Roles Taxonomy
uses the XML
Namespace [XMLNAMES] identifier http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#.
All examples are informative. Examples in this document that use the XML Namespace prefix "wairole" all assume a valid xmlns declaration such as
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
in the document involved.
The remainder of this section describes the properties of roles in this taxonomy, and describes the characteristics of all roles. A formal RDF representation of all the information presented here is available in Appendix 6.1: Implementation.
This section is normative.
The role taxonomy uses the following relationships to relate ARIA roles to each other and to concepts from other specifications, such as HTML and XForms.
Editorial note: The information below is presented with details arranged in a data table. Concerns about accessibility of this have been raised. An experimental alternate presentation is provided in Relationships between concepts in list form, using definition lists instead of tables to organize the details. We appreciate feedback about which form is more effective, or proposals for other forms.
| Relationship | RDF Property | Description |
|---|---|---|
| Parent Role | rdfs:subClassOf | The role that this role extends in the taxonomy. This extension causes all the properties and constraints of the parent role to propogate to the child role. Other than well known stable specifications, inheritance may be restricted to items defined inside this specification so that items can not be changed and affect inherited classes. For example: Inheritance is expressed in RDF using the RDF Schema subClassOf [RDFS, section 3.4] property. |
| Child Roles | Informative list of roles for which this role is the parent. This is provided to facilitiate reading of the specification but adds no new information as the list of child roles is the list of roles for which the current role is the parent. | |
| Related Concepts | role:relatedConcept | A relatedConcept is a similar or related idea from other specifications. Concepts that are related are not necessarily identical. relatedConcepts do not inherit properties from each other. Hence if the definition of a type changes, the properties, behavior and definition of a relatedConcept is not affected. For example: A grid is like a table. Therefore, a grid has a relatedConcept of a table as defined at http://www.w3.org/TR/html4/struct/tables.html#edef-TABLE. However if the definition of table is modified our definition of a grid will not be affected. |
| Base Concept | role:baseConcept | A baseConcept is like a "borrowed" concept. BaseConcept is similar to type, but without inheritance of limitations and properties. baseConcepts are designed as a substitute for inheritance for external concepts. A baseConcept is like a relatedConcept except that baseConcepts are almost identical to each other. For example: the checkbox defined in this document has the same functionality and anticipated behavior as a checkbox defined in http://www.w3.org/MarkUp/HTML#checkbox. Therefore, a checkbox has a baseConcept of a checkbox as defined at http://www.w3.org/MarkUp/HTML#checkbox. However, if http://www.w3.org/MarkUp/HTML#checkbox is modified, the definition of a checkbox in this document will not be not affected. |
This section is normative.
Roles are defined and described by their characteristics. Characteristics define the structural function of a role, such as what a role is, concepts behind it, what instances of the role can or must contain. In the case of widgets this also includes how it interacts with the user agent based on mapping to HTML forms and XForms. States and properties from ARIA States and Properties that are supported by the role are also indicated.
The Roles Taxonomy defines the following characteristics. These characteristics are implemented in RDF as properties of the OWL classes that describe the roles.
Editorial note: The information below is presented with details arranged in a data table. Concerns about accessibility of this have been raised. An experimental alternate presentation is provided in Role characteristics in list form, using definition lists instead of tables to organize the details. We appreciate feedback about which form is more effective, or proposals for other forms.
| Characteristic | RDF Property | Description | Values |
|---|---|---|---|
| Is Abstract | N/A | This role is abstract and cannot be used by authors directly. It is used to create a relationship amongst descendant roles. | Boolean |
| Supported States and Properties | role:supportedState |
A supportedState must be supported by this role. Typically refers to states from the aaa namespace. Supported states and properties are inherited from ancestor roles and are shown informatively as Inherited States in this specification. States and properties are inherited from ancestor roles in the role taxonomy, not from ancestor elements in the DOM tree. |
Any valid RDF object reference, such as a URI or RDF ID reference. |
| Inherited States and Properties | Informative list of properties that are inherited onto a role from ancestor roles. These properties are not explicitly defined on the role as the inheritance of properties is automatic. This information is provided to facilitate reading of the specification. The set of supported states and properties combined with inherited states and properties forms the full set of states and properties supported by the role. | ||
| Required Child Elements | role:mustContain |
A child element that must be contained by this role. For example a list must contain a listitem. |
Any valid RDF object reference, such as a URI or RDF ID reference. |
| Parent Element | role:scope |
Context, where this role is allowed. For example a list item is allowed inside a list. |
Any valid RDF object reference, such as a URI or RDF ID reference. |
| Name From | role:nameFrom |
Computational mechanism to determine the accessible name of the object to which the role applies. This may be computed from the children of the object or the title attribute. Computing the accessible name: Collect the name from the content subtrees pointed to by labelledby which contains the IDs for the label content. Use the labelledby IDs in order. For each ID use a depth-first computation of the name, appending to the currently computed name. If labelledby is unspecified:
|
One of the following values:
|
| Children Presentational | role:childrenArePresentational | The children are presentational. Assistive technologies may choose to hide the children from the user, in order to avoid confusing third party APIs using accessibility APIs. If assistive technologies do not hide the children, user agents may read some information twice. | Boolean (true | false) |
This section is normative.
Some states and properties are applicable to all roles, and most are applicable to all elements regardless of role. In addition to explicitly expressed supported states and properties, the following global states and properties are supported by all roles as well. These include:
Global states and properties are applied to the role roletype, which is the base role, and therefore inherit into all roles. To facilitiate reading, they are not explicitly identified as either supported or inherited states and properties in the specification. Instead, the inheritance is indicated by a link to this section.
This section is normative.
To support the current user scenario, this specification defines roles that A, help define Widgets (For example, a tristate Checkbox) and B, help define page structure (for example, a section header).
Roles are categorized as follows:
Editorial note: The roles below are presented with details arranged in a data table. Concerns about accessibility of this have been raised. An experimental alternate presentation is provided in Role details in list form, using definition lists instead of tables to organize the details. We appreciate feedback about which form is more effective, or proposals for other forms.
Below is an alphabetical list of ARIA roles to be used by rich internet application authors (excluding abstract roles which are not used directly). A detailed definition of the taxonomy supporting these ARIA roles follows.
| Role | Definition |
|---|---|
| alert | A message with an alert or error information. |
| alertdialog | A separate window with an alert or error information. |
| application | A software unit executing a set of tasks for its users. |
| button | Allows for user-triggered actions. |
| checkbox | A control that has three possible values, (true, false, mixed). |
| columnheader | A table cell containing header information for a column. |
| combobox | Combobox is a presentation of a select, where users can type to locate a selected item. |
| description | Descriptive content for a page element which references this element via describedby. |
| dialog | A dialog is a small application window that sits above the application and is designed to interrupt the current processing of an application in order to prompt the user to enter information or require a response. |
| directory | A list of references to members of a single group. |
| document | Content that contains related information, such as a book. |
| grid | A grid contains cells of tabular data arranged in rows and columns (e.g., a table). |
| gridcell | A gridcell is a table cell in a grid. Gridcells may be active, editable, and selectable. Cells may have relationships such as controls to address the application of functional relationships. |
| group | A group is a section of user interface objects which would not be included in a page summary or table of contents by an assistive technology. See region for sections of user interface objects that should be included in a page summary or table of contents. |
| heading | A heading for a section of the page. |
| img | An img is a container for a collection elements that form an image. |
| link | Interactive reference to a resource (note, that in [XHTML] 2.0 any element can have an href attribute and thus be a link) |
| list | Group of small items. |
| listbox | A list box is a widget that allows the user to select one or more items from a list. Items within the list are static and may contain images. |
| listitem | A single item in a list. |
| log | A region where new information is added and old information may disappear such as chat logs, messaging, game log or an error log. In contrast to other regions, in this role there is a relationship between the arrival of new items in the log and the reading order. The log contains a meaningful sequence and new information is added only to the end of the log, not at arbitrary points. |
| marquee | A marquee is used to scroll text across the page. |
| menu | Offers a list of choices to the user. |
| menubar | A menubar is a container of menu items. Each menu item may activate a new sub-menu. Navigation behavior should be similar to the typical menu bar graphical user interface. |
| menuitem | A link in a menu. This is an option in a group of choices contained in a menu. |
| menuitemcheckbox | Defines a menuitem which is checkable (tri-state). |
| menuitemradio | Indicates a menu item which is part of a group of menuitemradio roles. |
| option | A selectable item in a list represented by a select. |
| presentation | An element whose role is presentational does not need to be mapped to the accessibility API. |
| progressbar | Used by applications for tasks that take a long time to execute, to show the execution progress. |
| radio | A radio is an option in single-select list. Only one radio control in a radiogroup can be selected at the same time. |
| radiogroup | A group of radio controls. |
| region | Region is a large perceivable section on the web page. |
| row | A row of table cells. |
| rowheader | A table cell containing header information for a row. |
| separator | A line or bar that separates and distinguishes sections of content. |
| slider | A user input where the user selects an input in a given range. This form of range expects an analog keyboard interface. |
| spinbutton | A form of Range that expects a user selecting from discrete choices. |
| status | This is a container for process advisory information to give feedback to the user. |
| tab | A header for a tabpanel. |
| tablist | A list of tabs, which are references to tabpanels. |
| tabpanel | Tabpanel is a container for the resources associated with a tab. |
| textbox | Inputs that allow free-form text as their value. |
| timer | A numerical counter which indicates an amount of elapsed time from a start point, or the time remaining until an end point. |
| toolbar | A toolbar is a collection of commonly used functions represented in compact visual form. |
| tooltip | A popup that displays a description for an element when a user passes over or rests on that element. Supplement to the normal tooltip processing of the user agent. |
| tree | A form of a list having groups inside groups, where sub trees can be collapsed and expanded. |
| treegrid | A grid whose rows can be expanded and collapsed in the same manner as for a tree. |
| treeitem | An option item of a tree. This is an element within a tree that may be expanded or collapsed |
The following roles are used as base types for applied roles. Base classes are used to build a picture of the role taxonomy class hierarchy within the taxonomy. Note that while all roles in this section are abstract, not all abstract roles are in this section. This section includes only the most high-level abstractions in the taxonomy.
Roles in this section include:
roletypeBase role from which all other roles in this taxonomy inherit.
Properties of this role describe the structural and functional purpose of objects that are assigned this role (known in RDF terms as "instances"). A Role is a concept that can be used to understand and operate instances.
| Is Abstract: | True |
|---|---|
| Parent Role: | |
| Child Roles: | |
| Base Concept: | |
| Related Concepts: |
|
| Supported States and Properties: | |
| Inherited States and Properties: | |
| Name From: | |
| Accessible Name Required: | |
| Inherits Name Required: | |
| Children Presentational: | |
| Inherits Presentational: |
widgetA component of a GUI (graphical user interface).
Widget Roles all map to accessibility APIs. Widgets are ... , see @@
| Is Abstract: | True |
|---|---|
| Parent Role: | roletype |
| Child Roles: | |
| Base Concept: | |
| Related Concepts: | |
| Supported States and Properties: | |
| Inherited States and Properties: | |
| Name From: | |
| Accessible Name Required: | |
| Inherits Name Required: | |
| Children Presentational: | |
| Inherits Presentational: |
structureA document structural element.
Roles for document structure are also required to support the accessibility of dynamic Web content to assist assistive technology in determining active content vs. static document content. Structural Roles, by themselves do not all map to accessibility APIs, but are used to create widget roles or assist content adaptation.
This schema is likely to evolve as new use cases are added to the scope of this specification.
| Is Abstract: | True |
|---|---|
| Parent Role: | roletype |
| Child Roles: | |
| Base Concept: | |
| Related Concepts: | |
| Supported States and Properties: | |
| Inherited States and Properties: | |
| Name From: | |
| Accessible Name Required: | |
| Inherits Name Required: | |
| Children Presentational: | |
| Inherits Presentational: |
compositeA widget that may contain navigable descendants.
Descendants of this role may not have the "nameFrom" value of "subtree" set.
| Is Abstract: | True |
|---|---|
| Parent Role: | widget |
| Child Roles: | |
| Base Concept: | |
| Related Concepts: | |
| Supported States and Properties: | activedescendent |
| Inherited States and Properties: | |
| Name From: | author |
| Accessible Name Required: | |
| Inherits Name Required: | |
| Children Presentational: | |
| Inherits Presentational: |
windowBrowser or application window
| Is Abstract: | True |
|---|---|
| Parent Role: | roletype |
| Child Roles: | |
| Base Concept: | |
| Related Concepts: | |
| Supported States and Properties: | |
| Inherited States and Properties: | |
| Name From: |
|
| Accessible Name Required: | |
| Inherits Name Required: | |
| Children Presentational: | |
| Inherits Presentational: |
These roles ...
Roles in this section include:
inputGeneric type for widgets that can have a value.
| Is Abstract: | True |
|---|---|
| Parent Role: | widget |
| Child Roles: | |
| Base Concept: | |
| Related Concepts: | XForms input |
| Supported States and Properties: | |
| Inherited States and Properties: | |
| Name From: | author |
| Accessible Name Required: | |
| Inherits Name Required: | |
| Children Presentational: | |
| Inherits Presentational: |
selectA form control that allows the user to make selections from a set of choices. A select must contain an option.
| Is Abstract: | True |
|---|---|
| Parent Role: | |
| Child Roles: | |
| Base Concept: | |
| Related Concepts: | |
| Supported States and Properties: | |
| Inherited States and Properties: | |
| Name From: | author |
| Accessible Name Required: | |
| Inherits Name Required: | |
| Children Presentational: | |
| Inherits Presentational: |
listbox
A list box is a widget that allows the user to select one or more items from a list. Items within the list are static and may contain images.
| Is Abstract: | |
|---|---|
| Parent Role: | |
| Child Roles: | |
| Base Concept: | |
| Related Concepts: | |
| Parent Element: | |
| Required Child Elements: | |
| Supported States and Properties: | multiselectable |
| Inherited States and Properties: | |
| Name From: | author |
| Accessible Name Required: | True |
| Inherits Name Required: | |
| Children Presentational: | |
| Inherits Presentational: |
comboboxCombobox is a presentation of a select, where users can type to locate a selected item.
Combobox is the combined presentation of a single line textbox with a drop down select widget. The combobox may be open or closed. An "open" combobox allows users to type freeform text into the textbox whereas a "closed" combobox only shows text in the textbox which can be retrieved from the select. Typically a "closed" text field will use the text entered to quickly search and fill the textfield with text from the select.
NOTE: In [XFORMS] the same select can have one of 3 appearances: combo-box, drop-down box or group of radio-buttons. Besides, many browsers (if not all of them) allow users to type in a drop-down select as well.
| Is Abstract: | |
|---|---|
| Parent Role: | select |
| Child Roles: | |
| Base Concept: | |
| Related Concepts: | |
| Parent Element: | |
| Required Child Elements: | option |
| Supported States and Properties: | autocomplete |
| Inherited States and Properties: | |
| Name From: | author |
| Accessible Name Required: | True |
| Inherits Name Required: | |
| Children Presentational: | |
| Inherits Presentational: |
optionA selectable item in a list represented by a select.
An option must appear inside an element with select role.
| Is Abstract: | |
|---|---|
| Parent Role: | input |
| Child Roles: | |
| Base Concept: | HTML option |
| Related Concepts: | |
| Parent Element: | select |
| Required Child Elements: | |
| Supported States and Properties: | |
| Inherited States and Properties: | |
| Name From: |
|
| Accessible Name Required: | True |
| Inherits Name Required: | |
| Children Presentational: | |
| Inherits Presentational: |
checkboxA control that has three possible values, (true, false, mixed).
Many checkboxes do not use the mixed value, and thus are effectively boolean checkboxes. However, the checked state supports the "mixed" value to support cases such as installers where an option has been partially installed.
| Is Abstract: | |
|---|---|
| Parent Role: | option |
| Child Roles: | |
| Base Concept: | |
| Related Concepts: | HTML input (type : checkbox) |
| Parent Element: | |
| Required Child Elements: | |
| Supported States and Properties: | |
| Inherited States and Properties: | |
| Name From: |
|
| Accessible Name Required: | True |
| Inherits Name Required: | |
| Children Presentational: | |
| Inherits Presentational: |
radioA radio is an option in single-select list. Only one radio control in a radiogroup can be selected at the same time.
| Is Abstract: | |
|---|---|
| Parent Role: | checkbox |
| Child Roles: | |
| Base Concept: | |
| Related Concepts: | HTML input (type : radio) |
| Parent Element: | |
| Required Child Elements: | |
| Supported States and Properties: | |
| Inherited States and Properties: | |
| Name From: |
|
| Accessible Name Required: | True |