The roles "application" and "document" put the screen reader in modes
appropriate for web applications or documents, respectively.
In application mode, pages can only be navigated with tab/shift+tab, which
moves among focusable elements such as links and form controls, or whatever
you choose to make focussable.
Document mode allows one to tab as normal, but also allows the user to arrow
through the document, and adds a host of shortcut keys which do things like
move to next/previous html heading, list element, paragraph, etc.
> 2. Good info, we'll try that thanks. Also, is the hash link to the
> menu content the best way to transfer focus? What about aria-owns?
I'm not totally sure on this, but in one approach focus is transfered by
widgit code in an event handler via code like:
setTimeout(function () { element.focus(); }, 0);
The other approach uses aria-owns somehow (I think you set it to the ID of
an element which is to gain focus and the screen reader actually changes the
focus). Again, I'm not so clear on this myself so check out the following
for more:
http://wiki.codetalks.org/wiki/index.php/Web_2.0_Accessibility_with_WAI-ARIA_FAQ
http://www.travisroth.com/2008/10/28/aria-tree-markup/
First, sorry this whole thread got lost in my stack.
Probably the best way to think about using the landmark
role="application" is when you want to tell assistive technology that
this part of the dom is not really just a bunch of words to be read (via
keyboard commands), but is instead an interactive UI, so "please let the
keyboard events pass through to the browser/dom".
(see http://www.w3.org/WAI/PF/aria/#application)
Hope this helps,
D