Re: Using WAI-ARIA for code folding?

> On Aug 4, 2016, at 12:34, Bryan Garaventa wrote:
> If you use a Tree widget, it will enforce a form field type effect
> for screen reader users, which will make it nearly impossible to
> review and copy code if that is what you want.

Ideally, the user would be able to review, edit, copy and paste, etc.
However, being able to efficiently review code would be a good start.

> The simple Accordion pattern would work best for this, as suggested
> by others earlier.

I can't find those suggestions; can you point me to a specific posting?

> Here is some code recently built for the W3C that demonstrates this,
> with configuration settings within the file setup.js for changing the
> functionality as needed.

Thanks!  I hacked up the example and got it to display two alternating
functions:

  http://cfcl.com/rdm/Projects/ARIA_Accord/t1.htm

I suspect there's a simple way to display combinations of functions
(toggling them individually), but my web-fu is a bit sketchy.  Help?

For extra credit, it would be great to be able to hide and show parts
of functions (e.g, the body of the case construct).  Suggestions?.

-r

 -- 
http://www.cfcl.com/rdm           Rich Morin           rdm@cfcl.com
http://www.cfcl.com/rdm/resume    San Bruno, CA, USA   +1 650-873-7841

Software system design, development, and documentation

Received on Thursday, 4 August 2016 23:38:43 UTC