Repository navigation
Add definition for Focusable - #39
carmacleod wants to merge 1 commit into
Conversation
|
I think this is vague enough that it covers the variety of things that user agents actually count as being focusable. |
cookiecrook
left a comment
There was a problem hiding this comment.
I don't have a good prose suggestion atm, but wanted to raise these.
| </dd> | ||
| <dt><dfn>Focusable</dfn></dt> | ||
| <dd> | ||
| <p>An element is focusable if it can be given the input focus by either the user (for example, using mouse or keyboard) or by script.</p> |
There was a problem hiding this comment.
By this definition all natively focusable elements will always be exposed to the accessibility tree. Even if you add tabindex="-1" and hide it with ARIA hidden, it's still focusable by a script.
<div aria-hidden="true">
<a href="#" tabindex="-1">foo</a> <!-- this is focusable -->
<input tabindex="-1"> <!-- so is this, right? -->
</div>Also, the definition might need to address concepts such as @inert and/or @disabled
|
Loosely, I think the definition will need to cover the following:
|
|
Those 2 Chrome puts them in the a11y tree and says they're focusable. |
|
Looping in @alice because she was going to research the reasons for a recent change to the HTML spec that mentions expected behavior of Context for Alice, this new term "focusable" is being added to ARIA with the intention of simplify the text required for the "tree inclusion" portion of the ARIA spec. E.g. ~"among other things, content should be included if it's 'focusable'" |
|
It is worth noting for this discussion that the terminology section in ARIA is informative not normative. |
|
@cookiecrook, some random thoughts: Is the HTML definition of focusable area helpful here? It mentions "tabindex non-null", and "not inert" and "not disabled" (do we need to also consider
We may not need to wait before including "not inert" in our definition of focusable, because the current definition of the concept of inertness is probably close enough. I wonder if your point 2 about only including script-focusable elements in the tree on focus might belong over in w3c/aria#1100 so that this definition of focusable can be used in other places in the ARIA spec? I also wonder if point 2 is more of a "user agents MAY", given the inconsistent behavior I noted in the previous comment? |
I've had a chance to review and I agree that cross-referencing the HTML definition is probably best.
I don't think
Okay. Will unpack this one over there. |
|
Clarifying: rather than making a new copy of the focusable definition in the ARIA spec, I think the ARIA definition should link to the HTML definition. I think that's what you intended, but I wanted to be clear. |
|
Closing this in favor of w3c/aria#1936 |
Add a definition of "focusable" in order to merge w3c/aria#1100.
(No related aria-common issue).