(/input|select|textarea|button|object/.test(nodeName)
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