This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 363
if aria-value/now/min/max is a decimal value, warning "ARIA state and property values must be valid" #182
Labels
Comments
is there a reason why both commit: 2c4f4d0#diff-31cb7b83c1e24f0b5f5b7ebe786bb577R988 src snapshot: accessibility-developer-tools/src/js/AccessibilityUtils.js Lines 692 to 707 in 48b283e
case "integer":
case "decimal":
var validNumber = axs.utils.isValidNumber(value);
if (!validNumber.valid) {
result.valid = false;
result.reason = validNumber.reason;
return result;
}
if (Math.floor(validNumber.value) != validNumber.value) { // <--- this is testing decimals as well
result.valid = false;
result.reason = '' + value + ' is not a whole integer';
} else {
result.valid = true;
result.value = validNumber.value;
}
return result; Looks like an easy fix |
Looks like the intention was to fall through from |
PR #196 will fix this. |
ricksbrown
added a commit
to ricksbrown/accessibility-developer-tools
that referenced
this issue
Jul 25, 2015
Closed by #196 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
According to the spec, a decimal value is fine. What am I missing?
http://www.w3.org/TR/wai-aria/states_and_properties#aria-valuenow
aria-valuenow
andaria-valuemax
warningsaria-valuemin
warningThank you!
The text was updated successfully, but these errors were encountered: