-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "May not have accessible object" preamble for UIA div and span #191
Comments
(assigning to me) |
Reading again, I see that @melanierichards' comment in w3c/aria#699 (comment) also applies to span:
|
Thanks for getting this going @carmacleod think this will be related to the local draft I have started for 151 |
Hi, @scottaohara . I had just discovered #151 a few minutes ago, and I have been trying to figure out what the mappings are for span if it is "semantically interesting" (i.e. if it has tabindex, etc). Anyhow, just wondering if the same div-preamble would be useful for span as well. Something like:
|
In the case of ATK, we would want to preserve the existing role (ATK_ROLE_SECTION) for divs which are exposed. |
Hi @joanmarie . The table entry for ATK
It's the entry for
Is that ok? Would you want the text interface(s) for span as well? |
I was going down the route of adding "ATK_ROLE_STATIC (if mapped)" but I'm fine with what you're proposing for now:
Per 151, that preamble would need to be added to other elements that this change would apply to. but i'll take care of that to close that issue |
I leave this in your capable hands. :) |
The thing is, it's not just semantic meaning that can cause an element to need to be exposed in the accessibility tree. If an author puts a If anything, I would update the text for |
Regarding the language above, I personally would prefer the language I stated, but like you I'll leave it up to @scottaohara. Regarding the interfaces: Any element which exposes text needs to implement AtkText. Any element which has children needs to also implement AtkHypertext. |
Ok, although my thinking was that adding The problem I have with "(if mapped)" is that it makes me wonder: "Why wouldn't it be mapped?" Can we use "(if mapped)", but link it to some useful definition? The definition of "Not Mapped" in HTML-AAM is not useful enough because it doesn't tell the whole story:
There is no definition for "Not Mapped/If Mapped" (for roles) in Core-AAM any more... So can we link to the not-yet-reworded section "Including Elements in the Accessibility Tree" currently in the ARIA spec (although @jnurthen mentioned it might belong back in Core-AAM... 😄 ). |
That's fair. :) But the answer to "why it's mapped" might NOT be "because some spec says it needs to be mapped as a result of X or Y" or "because it has semantic meaning" or "because it's focusable." Instead, the answer might be something like "Because it's too big a change to remove it, and there's not a spec statement prescribing that we MUST exclude it, so whatever. It's in the tree." (Admittedly, I paraphrase a tad. But not all that much....) Yes, it would be nice to have all accessibility trees be the same regardless of user agent and regardless of accessibility API. Good luck making that happen. ;) So.... We need something which boils down to "if, for whatever reason, you're going to include this in your accessibility tree, here's the platform role to use so that ATs know what the heck it is." I thought "if mapped" covered that. |
I'm fine with having " (if mapped)" appended to the platform role for all span-ish and div-ish elements (and remove the preamble); ... so @scottaohara can finish #151. :) However, I'd like to add a new bullet to the HTML AAM Element Role Mappings Notes, right after the bullet about "Not mapped". Something like:
(@joanie is that last sentence about right?) @scottaohara I can open a separate issue for the new bullet if you prefer. |
@carmacleod What's an example of "space optimization"? Also, your proposed definition of "if mapped" seems to emphasize the exclusion and not give enough emphasis on inclusion. What about tweaking it to something like:
|
I like it - it's perfect. Thank-you! It even nudges the user agents along towards a semblance of mapping parity with the normative MUST in there. (for "space optimization", I was thinking along the lines of optimizing memory use, i.e. if the a11y tree got too big, that could affect performance. However, your phrase "implementation-specific reasons" covers all of that stuff - nice!). |
Closing this issue as it has been completely superseded by #151. |
Add preamble mentioned in w3c/aria#699 (comment) by @melanierichards:
The text was updated successfully, but these errors were encountered: