Closed
Description
Noticed this in reviewing #3165. In determining if an element is focused, axe-core looks at the disabled attribute. However it doesn't check if that attribute is allowed for the node. So the following link is incorrectly determined as not focusable:
<a href="foo.html" disabled>Hello</a>
This bug exists in lib/commons/dom/focus-disabled.js
. The fix is to check vNode.props.nodeName
before looking for the disabled
attribute.