Supported Accessibility Roles

Accessibility roles from the WAI-ARIA specification that are supported in Safari are described here.

Accessibility Roles

WebKit now has elementary support for the WAI-ARIA specification. Developers can assign a value to the role attribute of a div or span element, indicating the purpose of a custom interface element on a webpage. This enables accessibility utilities to interact with these elements as they would with standard inputs and menus. The following example shows an image that is recognized by accessibility utilities as a button:

<div role="button" tabindex="0" onkeydown="return buttonEvent(event);" onclick="return buttonEvent(event);">
    <img src='myimage.jpg'>
</div>

More information on the WAI-ARIA specification can be found at http://www.w3.org/TR/wai-aria/.

button

A standard button.

Availability

Available in Safari 4.0 and later.

checkbox

A standard checkbox.

Availability

Available in Safari 4.0 and later.

group

A group of elements that should not be included individually in a page summary or table of contents.

Availability

Available in Safari 4.0 and later.

heading

The heading for a section of a page.

Availability

Available in Safari 4.0 and later.

img

A collection of elements that compose an image.

Availability

Available in Safari 4.0 and later.

link

A hyperlink.

Availability

Available in Safari 4.0 and later.

listbox

A dropdown list of options.

Availability

Available in Safari 4.0 and later.

listitem

A list item.

Availability

Available in Safari 4.0 and later.

menu

A standard menu.

Availability

Available in Safari 4.0 and later.

menubar

A container of menus.

Availability

Available in Safari 4.0 and later.

menuitem

An option in a menu.

Availability

Available in Safari 4.0 and later.

menuitemcheckbox

A checkable menu item.

Availability

Available in Safari 4.0 and later.

menuitemradio

A radio button menu item in a group of mutually exclusive choices.

Availability

Available in Safari 4.0 and later.

option

An item in a dropdown list.

Availability

Available in Safari 4.0 and later.

progressbar

A visual indicator of the progress of a task.

Availability

Available in Safari 4.0 and later.

radio

A radio button in a group of mutually exclusive choices.

Availability

Available in Safari 4.0 and later.

textbox

A text input field.

Availability

Available in Safari 4.0 and later.