4 ms·
>Localized custom validation messages for the provided pattern should be added as part of HTML spec. That sounds like a reasonable addition. Perhaps a series o
by IanCal 10y ago
>Localized custom validation messages for the provided pattern should be added as part of HTML spec.
That sounds like a reasonable addition. Perhaps a series of validators and messages?
> Yes, but if you are writing for a general audience, make sure it's accessible: http://webaim.org/techniques/javascript/ http://webaim.org/techniques/javascript/
Very true. Thanks for the link.
> Someone should put together a site that, given a set of browser restrictions the user provides, gives examples of each of these to show the most accessible and standards-compliant version of the code to use, minimizing external libraries required, with and without localization, because not everyone has the resources to provide localized content, unless localization could be provided by a built-in library in the browser or OS, which would be another great project.
This is something I'd like to see, because apart from a few things I know to look for (tabbing, for example), I don't know how well various devices and settings do with different content. Consistent approaches also help people working on things like screenreaders.