-
Notifications
You must be signed in to change notification settings - Fork 27
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
HTML-AAM: how to map Inner Phrasing Content for <meter>? #27
Comments
From @cyns on April 23, 2016 21:9 @stevefaulkner @jasonkiss @joanmarie we're blocked on this one. should it be mapped at all? I thought about mapping it to aria-valuetext, but that uses the same uia property that we're using for the result of optimal calculation (Value.Value). |
My initial impression is that the element subtree would be used for the accname. So similar to how But I note that So wouldn't the name computation be the following?
And if so, should we also update the name computation for Regardless, given that final mappings for |
confirming: the sequence looks reasonable, and shouldn't be different from HTML:button one. However I would say instead that elements like HTML:button are labellable and allow name computation from subtree leaving ARIA behind, since this is universal rule and we don't have to repeat it all over. |
@jasonkiss commented on Feb 7, 2018, 9:50 AM GMT+10:
I don't really follow this. Yes, button is similar in that it can have content, but the similarity ends there. Button's content is visible to all users. In contrast, meter's content is fallback content. If anything, fallback content is more likely to be a textual representation of the value. An author is likely to do something like this:
rather than this:
I'd suggest that aria-valuetext (as discussed above) is a better mapping. I don't quite understand mapping of optimal to value; low, optimal and high seem difficult/impossible to map with current accessible value interfaces. |
resolves #27 this PR looks to treat the fallback content (the subtree) of the meter element as `aria-valuetext`. However, an author updates the value of the meter element, but does not update the subtree/fallback content, then the `value` needs to instead take preference over the fallback content, as the fallback contnet would no longer represent the true value of the `meter` element.
the fallback content for the meter isn't exposed to anyone when the browser supports meter. it doesn't seem necessary to expose the fallback content if the meter is rendered, especially since if the meter value updates the fallback content would likely become out of sync and then the meter would need to drop that and just expose the updated values - which it could have done / should already be doing now. so i'm going to close this issue, i no longer think this should be done. |
FWIW, Firefox currently exposes the fallback content as the value of a meter. Obviously, that's incorrect per the spec. However:
We had concerns about user understanding of a meter, given the difficulty (and current lack) of mapping for optimal, low and high. As I understand it, those attributes fundamentally alter the way meter is rendered visually, and without some way of communicating that to accessibility APIs (and I don't have any useful thoughts on that), AT users could be missing out on required info for interpreting the meter correctly. Our thought was that the fallback content might provide better info in this case.
Are you thinking it would get out of sync because most authors just wouldn't bother updating it? I guess that's reasonable. To be clear, I'm not necessarily arguing that what Firefox is doing is the way we should go. It would seem Firefox is the odd one out here. However, I thought it might be worth providing this additional context as to why we went that direction. |
From @cyns on February 2, 2016 18:24
HTML spec on has examples like this
<meter value="0.5">Moderate activity</meter>
Where should the inner phrasing content "Moderate activity" be mapped in the AAPIs? Is this a value? Part of name or description? Something else?
Copied from original issue: w3c/aria#240
The text was updated successfully, but these errors were encountered: