Welcome to the XUL Accessibility Guidelines. By following these principles and practices, you will be able to write your XUL applications in such a way that all individuals, including those with physical, sensory, or communicative disabilities, with be able to use and enjoy them. Accessibility is not difficult, but does require a basic understanding of the different types of disabilities, commonly used assistive technologies, and special accessibility features built into the XUL languages. Most of all, accessibility requires a conscious effort on your part, and a desire to include everyone.
It is hoped that these guidelines will be sufficiently clear and detailed that everyone--even someone with no previous background in accessibility--can understand them. However, these is an active community of accessibility developers within the Mozilla Project that will be happy to help you with any concerns or questions you have in regards to making your XUL applications fully accessible.
|Accessibility||Platform Features||Mozilla Community|
|Software Accessibility - Where Are We Today? Intro to accessibility, assistive technologies, and Mozilla resources.
Introduction to Web Accessibility. Overview of web accessibility from WebAIM.
Dive Into Accessibility. Downloadable book on web accessibility with tips and character sketches.Technology Compatibility. List of popular assistive technologies and their respective compatibility levels with XUL.
|Apple Accessibility. Portal to Apple accessibility.
LARS (Linux Accessibility Resource Site). Portal for general Linux accessibility.Microsoft Accessibility. Portal for Microsoft accessibility.
|Accessibility - MDC. Accessibility hub on the Mozilla Developer Center.
mozilla.support.accessibility. Mozilla accessibility newsgroup.#accessibility. Accessibility channel on mozilla's IRC server.
Keyboard access is important to users who can't use a mouse. Many screen reader users and those with physical disabilities rely on the keyboard as their primary input tool. These users require easy, predictable, and well documented keyboard control.
Provide a logical tab order and ensure that users can navigate all content using a keyboard. By default, the tab order is determined by the order of the elements in the underlying code. It can also be set programmatically with the tabindex attribute if needed, but this should be done sparingly and thoroughly tested whenever it is used. The navigation order should be logical, generally left to right, top to bottom. Navigation order may vary depending on the nature of the application or the reading direction of the language.
Ensure that tab order is logical and all interactive elements can be accessed simply without the use of a mouse. You should be able to perform all functionality either directly in the application or through menu items or the context menu.
Provide alternative functionality for inaccessible operations. The column picker and column headers in XUL trees are not keyboard accessible, consistent with the standard tree behavior on most contemporary operating systems. It is therefore necessary to provide a keyboard accessible alternative for accessing this functionality.
The Firefox "Bookmarks Manager" provides an example of how to make trees more accessible. The bookmark manager allows users to sort bookmarks by a particular column of information and choose which columns to display. Because column headers and the column picker, in the upper right hand corner of the tree, can not receive focus, they are not operable with a keyboard. In the bookmark manager this functionality is available under the view menu which is accessible to a keyboard user.
Toolbar buttons cannot receive focus with a keyboard. Functionality associated with a toolbar should be duplicated elsewhere in the application, such as in a menu item or context menu. In cases where duplication of functionality is not possible (such as a window without a menubar), toolbar buttons can be made focusable by adding class="tabbable" or with the special CSS rule -moz-user-focus: normal; this should only in extreme cases, and should be consistent within the window or application (meaning that either all toolbar buttons are tabbable or none of them are, but not an arbitrary mixture of both).
Keyboard shortcuts are very useful to users needing keyboard access. There are many ways to provide keyboard shortcuts. They are well documented in the XUL Tutorial:Keyboard Shortcuts.
Careful attention should be taken when setting keyboard shortcuts. When creating an extension (for Firefox or another XUL application), make sure the keyboard shortcuts you assign do not interfere with those already defined by the base application. Refer to the following resources when setting keyboard shortcuts.
|Keyboard Shortcuts and Accesskeys|
|Mozilla Keyboard Planning FAQ and Cross Reference. An excellent guide for determining unused key combinations and cross platform issues.
Mozilla Keyboard Shortcuts. A full list of keyboard shortcuts for the various Mozilla applications.Mozilla's accesskey FAQ. A short reference for using the accesskey attribute.
The context menu is the small menu activated with a right mouse click on a content area or element (or with Shift+F10 or VK_APPS (located between Right Alt and Right Shift) on the keyboard). Use the oncontextmenu event handler to create context menus. Do not specifically code them to open on a click of the right mouse button. The oncontextmenu event fires on the correct platform-specific context menu triggers, including the keyboard button and appropriate mouse clicks.