Re: Tree sample code

Hi James, yes your tree does that.

Cynthia said she feels strongly about degrading gracefully in older UAs. I 
showed the group how to do that for the virtual buffer (just by adding 
role="presentation" the <li> and <img> elements, not using user agent 
strings). My question for Cynthia is whether that's enough. She is leaning 
toward treating the tree as something where the user tabs through each 
item, although the general direction of the style guide group is to make 
it act like a genuine tree. 

My opinion is that it should use role="tree" unless it has the keyboard UI 
of a tree.

- Aaron



From:
James Craig <jcraig@apple.com>
To:
Aaron M Leventhal/Cambridge/IBM@IBMUS
Cc:
Jon Gunderson <jongund@illinois.edu>, Cynthia Shelly 
<cyns@exchange.microsoft.com>, George Young <gcyoung@microsoft.com>, W3C 
WAI-XTECH <wai-xtech@w3.org>
Date:
09/08/2008 08:24 PM
Subject:
Re: Tree sample code



Aaron M Leventhal wrote:

Cynthia, what do you think about having your tree widget have the keyboard 
UI of a tree?

I think the one I created serves that request, doesn't it? If it's missing 
something, please advise.

http://cookiecrook.com/test/aria/tree/ariatree.html

You could still have it gracefully degrade into nested lists of links in 
screen reader virtual buffers. 

That's a good recommendation to make, but I don't think it's necessary to 
do that amount of browser checking and rewriting for the example code, do 
you? One caveat though. Instead of maintaining a list of user agents that 
support ARIA, maintain a list of old user agents that are known to not 
support ARIA. Assume the best of unknown user agent strings, and serve up 
the full ARIA support.

James

Received on Monday, 8 September 2008 18:35:11 UTC