-
Notifications
You must be signed in to change notification settings - Fork 784
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
aria-valid-attr-value: allow numbers with comma as decimal separator #2450
Comments
Hey @placetobejohan, using comma as decimal separator doesn't work. Browsers will just ignore whatever comes after the comma. You have to use a dot, not a comma. The ARIA spec defers handling of numbers to HTML, which unfortunately doesn't have a definition of number, but browsers seem be consistent in using JavaScript's praseFloat method for this. You can read the definition of it here: And here's the list of defined types for HTML: |
Hi @WilcoFiers , Perhaps I should've been more specific or I came to the wrong conclusion. The issue I have is that elements like this one
are marked with invalid value. What could be the reason for this? Could it be related to the use of a Kendo numeric textbox? Thanks for your help. |
The issue seems to be with kendo here, they should generate a valid aria-valuenow independent of which culture is being used. |
Numbers that use a comma as decimal separator - eg aria-valuenow="68885,8" - now trigger the [aria-*] attributes do not have valid values error.
I wonder if it's possible to allow the comma as a decimal separator, perhaps based on the current UI culture?
The text was updated successfully, but these errors were encountered: