Respect/Template — Issue #16: ARIA roles
Author: alganet
Created: 2012-02-27 19:41:57+00:00
State: open

http://www.w3.org/TR/wai-aria/roles

Ok, I believe this could be a major selling point for Respect\Template.

Anyone familiar with WAI-ARIA? ARIA roles are tied to HTML elements to specify how UI behaves. For example, one could apply tree roles to a simple set of DIVs and browsers and/or screen readers would know how to represent these DIVs as a navigable tree (fixing keyboard navigation, speech and so on).

We currently have plans to inject data structures to HTML elements by their semantics. For example, a multi-dimensional array could map to table rows and cells. By using ARIA roles in HTML, we could expand this semantics using a standardized way.

One could think of ARIA roles in Respect\Template as view helpers. W3C approved.

Please @augustohp tell me your thoughts on this.