Re: Question regarding role=directory, the usage and purpose is unclear

FWIW, all the ARIA documents use this role for their table of contents.  
For example, the main <ul> under the "Table of Contents" heading in the 
ARIA 1.1 editors' draft [1] is:

<ul id="respecContents" class="toc" role="directory> ...

The AAPI role given in the the core mapping specification is a "list" 
role [2] since their is no specific "directory" role in any platform 
a11y API.  However, the aria role string is available in the accessible 
as well (how depends on the AAPI itself).

Thus, the IA2 and ATK/AT-SPI accessible in the a11y tree looks roughly 
like this, leaving out irrelevant details:
{
    role: list,
    name: "",
    description: "",
    ...,
    xml-roles: "directory"
}

The AXAPI accessible is:
{
   AXRole: AXList,
   AXSubrole: AXContentList,
  AXRoleDescription: "content list",
  AXTitle: "",
  AXDescription: "",
  ...,
}

The result is a declaration that this is a list, specifically a 
directory (a list of references).

[1] http://w3c.github.io/aria/aria/aria.html#respecContents
[2] http://w3c.github.io/aria/core-aam/core-aam.html#role-map-directory

-- 
;;;;joseph.

'Array(16).join("wat" - 1) + " Batman!"'
            - G. Bernhardt -

Received on Friday, 17 April 2015 14:17:31 UTC