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

Aria-expanded on anchor: W3C validator error

From: Sailesh Panchang <sailesh.panchang@deque.com>
Date: Mon, 8 Jul 2013 09:39:48 -0400
Message-ID: <CAJi9CqpcMv7AD=PjuSfWNGMo9J+EcUTf-5t12p1_iTGKscV28A@mail.gmail.com>
To: w3c-wai-ig@w3.org
I am trying to use aria-expanded on an anchor element but the W3C
validator gives an error. It expects an attribute role.
I do not understand why. I am using the attribute on an allowed element.
Even if I used role=link or role=button, it fails.

<a id="l1" href="javascript:myscript1('l1')" aria-

expanded="false" aria-controls="block1">Review Techniques</a>
I am using <!DOCTYPE html>
I appreciate your Tips / suggestions.
Sailesh Panchang
Received on Monday, 8 July 2013 13:40:18 UTC

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