W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2014

Re: Adding ARIA properties to form elements with class names

From: Sailesh Panchang <sailesh.panchang@deque.com>
Date: Mon, 28 Apr 2014 09:24:40 -0400
Message-ID: <CAJi9CqrS=MewoN34bXz47DLzqLL2FLr365+Y4qV9_gtaG8LwQg@mail.gmail.com>
To: James Craig <jcraig@apple.com>
Cc: Joshue O Connor <joshue.oconnor@cfit.ie>, "w3c-wai-ig@w3.org" <w3c-wai-ig@w3.org>
>>It's pretty trivial to use JavaScript (this is not specific to jQuery) to do this via a CSS >>classname.
Sure, my response above (with code example) did not say it is possible
with jQuery only.
Regards,
Sailesh
On 4/25/14, James Craig <jcraig@apple.com> wrote:
> On Apr 25, 2014, at 6:14 AM, Joshue O Connor <joshue.oconnor@cfit.ie>
> wrote:
>
>> On foot of the recent thread on the difference between HTML label and
>> aria-labelledby, I have a question about adding ARIA properties to input
>> controls that similar class names, rather than using IDs?
>> Firstly is this currently possible (I don't think so), and is it something
>> that is on the radar of our ARIA expert friends?
>
> It's pretty trivial to use JavaScript (this is not specific to jQuery) to do
> this via a CSS classname.
>
> Here's an example from a WWDC 2009 demo.
> http://cookiecrook.com/test/aria/HandsOn/5_Demo_ManagedFocus/roaming_tabindex/final.html
>
> Here's the bit of script that takes the "segmentedcontrol" classname and
> adds the "radiogroup" role, or the "itemlist" class and adds the "listbox"
> role.
> http://cookiecrook.com/test/aria/HandsOn/5_Demo_ManagedFocus/roaming_tabindex/js/init.js
>
> Here's the WWDC video for that session:
> https://developer.apple.com/videos/safari/#8-video
>
>
>
>
Received on Monday, 28 April 2014 13:25:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:51 UTC