RE: recommended attribute use in hierarchies?

Rich,

Q: If I'm just generating static headings and lists, what attributes should
   I be including (and why)?

Ans: When using elements for structure then using the standard heading, unordered and ordered lists, etc should be used. As the screen reader will by default understand these elements and permit the screen reader user to navigate between them using builtin shortcut keys. In fact, it is best practise to use standard browser elements where possible.

Q: If the example referenced above uses additional attributes, what is the
   reason for this?

Ans: The example you provided is for a tree view widget. In other words, when the focus is placed on a unordre list element with a ARIA role of Tree. The screen reader is informed this is a node (item) of the tree. The level of the treeview node is provided and if the node is collapsed or not. The example has two levels within the treeview. The UI is using an advance navigation structure. The screen reader user needs to gain more information so they know where they are located within the wigit.


I hope this helps.

Sean 

Received on Sunday, 5 February 2017 23:19:15 UTC