W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2016

RE: Using WAI-ARIA for code folding?

From: Sean Murphy (seanmmur) <seanmmur@cisco.com>
Date: Thu, 4 Aug 2016 04:11:31 +0000
To: Rich Morin <rdm@cfcl.com>, "w3c-wai-ig@w3.org" <w3c-wai-ig@w3.org>
Message-ID: <08e7c0dcf0224394997007fe33e3e3cc@XCH-RCD-001.cisco.com>
I assume when you refer to code folding is that you are collapsing the actual code and showing the function only. If I am right, I would look at the aria role for expand/collapse as this might be all you need.

Sean Murphy
Accessibility Software engineer 
Tel: +61 2 8446 7751	Cisco Systems, Inc.
The Forum 201 Pacific Highway
 Think before you print.
This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

-----Original Message-----
From: Rich Morin [mailto:rdm@cfcl.com] 
Sent: Thursday, 4 August 2016 1:29 PM
To: w3c-wai-ig@w3.org
Subject: Using WAI-ARIA for code folding?

I have been experimenting with ways to present computer source code, using HTML markup.  One of the things I'd like to support is code folding (selectively hiding and showing sets of lines, based on the hierarchical structure of the code):


It seems like WAI-ARIA attributes could be used for this, as in:

 Example 41 - Treeview

However, it isn't a very close match to my use case.  Given that someone else may have done work in this area, I thought I should ask for help.  Any suggestions before I start hacking?


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 04:12:03 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 4 August 2016 04:12:03 UTC