-
Notifications
You must be signed in to change notification settings - Fork 125
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
meter role should have optional aria-valuemin/max with defaults #1123
Comments
Another difference is that in HTML, the |
That aside for now though, I agree that it should have similar default values as you indicated. I took a stab at revising the definition, pulling some bits from
An Implicit Value for Role row would then be added to the characteristics table and Happy to revise further if you or anyone else would rather this worded differently. |
Note that there's a fallback table in the ARIA spec - maybe some of this needs to go in there, too? |
My bad, I missed that. |
@scottaohara your suggested revisions LGTM. @carmacleod maybe. Why is that in a separate section, though? (Maybe we should have a separate issue about this.) |
We did a bunch of work on that section a year ago because:
In case it's useful to know, here are some issues that were related to that work and a wiki page that lists which attributes were problematic. I think it's in a separate section because it's intended for User Agents, not authors. Authors should be able to get all of the info they need from the role spec, i.e. if an attribute is required, then it's required. They don't need to know what fallback value the UA might use... and they definitely shouldn't rely on it.
Agree. I'll open one after I look through the spec for "missing required attributes" inconsistencies. |
@carmacleod regarding why progressbar min/max aren't in the table you referenced, and why it looks like meter's min/max shouldn't go there either, here's the note following that table:
meter's valuenow, being required, should be added to this table though. |
The ARIA Working Group just discussed The full IRC log of that discussion<carmacleod> TOPIC: Meter role<carmacleod> github: https://github.com//issues/1123 <carmacleod> carmacleod: related to https://github.com//issues/1206 <carmacleod> joanie: we should do this for 1.2 <carmacleod> jamesn: changing to 1.2 <carmacleod> mck: still an issue around valuetext - if using that, why do you need min and max at all? <carmacleod> zakim, next item <Zakim> agendum 5. "Wide Review Comments with PRs" taken up [from jamesn] <carmacleod> https://github.com/w3c/aria/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22WR+comments%22+label%3A%22has+PR%22+ |
From the ARIA Working Group discussion in the comment above:
Note that the valuetext issue is captured in #1128. |
The
meter
role was added to ARIA for parity with HTML.https://w3c.github.io/aria/#meter
However, it's inconsistent with all other roles in that it doesn't have default values for
aria-valuemin
oraria-valuemax
, and they are required for authors to provide. With the exception ofspinbutton
, the defaults are 0 and 100, respectively.This is also inconsistent with the HTML
meter
element, which allows omitting themin
andmax
attributes. The default values in HTML are 0.0 and 1.0, respectively. In HTML, this is consistent with theprogress
element (exceptprogress
doesn't have amin
attribute).https://html.spec.whatwg.org/multipage/form-elements.html#the-progress-element
https://html.spec.whatwg.org/multipage/form-elements.html#the-meter-element
This seems like an unnecessary source of confusion. I suggest the
meter
role is changed to allow omittingaria-valuemin
andaria-valuemax
and that their default values are 0 and 100, like the other roles.The text was updated successfully, but these errors were encountered: