ACTION-2021: Draft text for default max and min spinbutton values
Draft text for default max and min spinbutton values
- State:
- closed
- Person:
- Joanmarie Diggs
- Due on:
- February 18, 2016
- Created on:
- February 11, 2016
- Associated Issue:
- ISSUE-1002
- Related emails:
- No related emails
Related notes:
The implicit values for aria-valuemin, aria-valuemax, and aria-valuenow are the same as the default values of the equivalent native host language element.
New branch created: https://github.com/w3c/aria/commit/64ac65a47
Spec view: https://rawgit.com/w3c/aria/action-2021/aria/aria.html#spinbutton
Setting status to Pending review.
New version: Went with infinity.
Commit: https://github.com/w3c/aria/commit/46f9fa1c
Spec view: https://rawgit.com/w3c/aria/action-2021/aria/aria.html#spinbutton
Consider this markup, where aria-valuenow is missing (author error):
<div role="spinbutton" aria-valuemin="-100" aria-valuemax="-10"> ... </div>
According to the latest spec text, the default value for missing aria-valuenow is 0 (zero) for this case. But, how can the current value be greater than the maximum?
My guess, for missing aria-valuenow:
1. if there is a valuemin and a valuemax, set valuenow to the midpoint.
2. if there is only a valuemin, set valuenow to valuemin.
3. if there is only a valuemax, set valuenow to valuemax.
4. if there is no valuemin nor valuemax, set valuenow to zero.
I"m withdrawing the suggestion in the previous note. The HTML5 <input type="number"> allows the @value to be undefined, in which case it becomes the empty string, which is parsed to a floating point number of 0.0.
Still, the visual display shows an empty spin button in this case, and communicates "no value set yet". The AAPI VALUE interfaces need some way of representing this. IA2's currentValue(&val) function returns true/false, and puts the value into the 'val' argument. When the function returns false, that indicates that, "there is nothing to return", and the 'val' is set to VT_EMPTY [1]. That can be used by ATs to indicate "there is no value set yet". Maybe.
[1] http://accessibility.linuxfoundation.org/a11yspecs/ia2/docs/html/interface_i_accessible_value.html#aec9c245ee3c5991d908769bb7cb46508
<jamesn> how about this? "Authors must set the aria-valuenow attribute. Authors should set the aria-valuemin attribute when there is a minimum value, and the aria-valuemax attribute when there is a maximum value. If missing or not a number, the implicit values of these attributes are as follows:"
<jamesn> "The implicit value of aria-valuemin is that there is no minimum value"
(ditto for max)
Note to self: We need to wait 48 hours.
I have updated the text in my branch to reflect James' text: https://github.com/w3c/aria/commit/546e518
Now it's viewable at https://rawgit.com/w3c/aria/action-2021/aria/aria.html#spinbutton for the CfC
Committed to master: https://github.com/w3c/aria/commit/9fce35e907
Setting State of this action to CLOSED.
Display change log.