Re: Progressively enhanced tree that works [was RE: Tree sample code]

On Sep 8, 2008, at 2:53 AM, Aaron M Leventhal wrote:

> Cynthia & others, will you try this version?

I modified a copy of Cynthia's version to include your changes.
http://cookiecrook.com/test/aria/tree/microsoft_modified/ariatree.htm

> I made 3 changes which I believe make the Microsoft tree satisfy  
> everyone's requirements (backwards compat with Firefox and  
> progressive enhancement):
>
> 1. Add role="presentation" on the <li> elements -- this avoids  
> cluttering the a11y hierarchy for the tree so that the automation  
> level/posinset/setsize calclulations can happen
> 2. Add role="presentation" on the <img> elements -- also avoids  
> clutter. The image is presentational because the same info is  
> provided via aria-expanded
> 3. Remove aria-setsize, aria-posinset and aria-level. This allows it  
> to be automatically computed by the UA.
>
> With these changes, legacy clients will still expose it as nested  
> lists of links. However, newer ARIA-capable clients will now expose  
> the correct structure, as well as level/posinset/setsize. The role  
> attribute, including role="presentation" do not affect the legacy  
> clients at all.

Received on Monday, 8 September 2008 20:44:23 UTC