Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Datepicker - error during validation W3C. #155

Open
dipartimentotrasformazionedigitale opened this issue Sep 24, 2018 · 1 comment
Open

Comments

@dipartimentotrasformazionedigitale

Using the url: https://validator.w3.org and checking the datepicker link: https://italia.github.io/design-web-toolkit/components/preview/datepicker.html, it shows 3 errors on Attribute pattern.

Please could you help us to find solution?

Thanks.

@mbolzan
Copy link

mbolzan commented Sep 28, 2018

as u wrote attribute pattern is not valid for input of type number.

my own idea is this, to use type number or similar is not a full-compatible cross-browsing solution, the benefit you have with built-in validation is not enough, you could use js validation and also server side validation (always remember) to be free to validate what ever you want and with different feedback layout.

anyway, just to validate w3c, you have to use type "text" of the input, you could insert text instead only numbers, but when you submit the form it validates according to the pattern.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants