- From: Alexander Surkov <surkov.alexander@gmail.com>
- Date: Sat, 12 Dec 2009 14:36:41 +0800
- To: James Craig <jcraig@apple.com>
- Cc: Hans Hillen <hhillen@paciellogroup.com>, wai-xtech@w3.org, David Bolter <dbolter@mozilla.com>, Richard Schwerdtfeger <schwer@us.ibm.com>
Ok. I think this example makes sense, however I'm not sure if it's a real use case to load tree items from the end. Any way it could be. Does it make sense to enable this feature for single-level trees, grids and lists? Alex. On Sat, Dec 12, 2009 at 11:19 AM, James Craig <jcraig@apple.com> wrote: > On Dec 11, 2009, at 7:08 PM, Alexander Surkov wrote: > >> I think aria-setsize can be calculated easy enough from aria-level >> attribute for the flat trees like >> >> <div role="tree"> >> <div role="treeitem" aria-level="1">item1</div> >> <div role="treeitem" aria-level="2">item1.1</div> >> <div role="treeitem" aria-level="2">item1.2</div> >> <div role="treeitem" aria-level="1">item2</div> >> </div> > > That's because you've completed the set of two. If all the tree items are in the DOM, you're right. It's not a problem, but the same heuristics would not be applicable to subgroups in XHR-loaded or otherwise DOM-loaded trees like this: > > <!-- tree's set size ~10,000 --> > <div role="tree"> > <!-- this particular subgroup's set size ~300 --> > <!-- currently display only a few items out of the middle of a subset --> > <div role="treeitem" aria-level="3" aria-posinset="153"> bop </div> > <div role="treeitem" aria-level="3" aria-posinset="154"> bar </div> > <div role="treeitem" aria-level="3" aria-posinset="155"> baz </div> > <div role="treeitem" aria-level="3" aria-posinset="156"> bop </div> > </div> > > >
Received on Saturday, 12 December 2009 06:37:20 UTC