:focusable

17 views
Skip to first unread message

Eduardo Lundgren

unread,
Jan 19, 2009, 9:53:44 PM1/19/09
to jquer...@googlegroups.com
The anchor tag could be focused, this tag should not be in the list?

(/input|select|textarea|button|object/.test(nodeName)


--
Eduardo Lundgren
Software Engineer
Liferay, Inc.
Enterprise. Open Source. For Life.

Colin Clark

unread,
Jan 19, 2009, 10:12:41 PM1/19/09
to jquer...@googlegroups.com
Hi Eduardo,

On 19-Jan-09, at 9:53 PM, Eduardo Lundgren wrote:

> The anchor tag could be focused, this tag should not be in the list?
>
> (/input|select|textarea|button|object/.test(nodeName)

Yep, you're right that anchor tags can be focused. But since they can
also be used as page anchors rather than links, they should only be
focusable if they've got an href attribute. This is also true for area
attributes. We cover that case in the line below:

a' == nodeName || 'area' == nodeName
? element.href || !isNaN(tabIndex)
: !isNaN(tabIndex))

Does this seem correct?

Colin

---
Colin Clark
Technical Lead, Fluid Project
Adaptive Technology Resource Centre, University of Toronto
http://fluidproject.org

Eduardo Lundgren

unread,
Jan 19, 2009, 10:17:38 PM1/19/09
to jquer...@googlegroups.com
Hi Colin,

Thanks for the reply but I sent this email out of the thread. Sorry about that.

This subject will keep being discussed on: http://groups.google.com/group/jquery-a11y/browse_thread/thread/1bc999ab54b20674
Reply all
Reply to author
Forward
0 new messages