-
Notifications
You must be signed in to change notification settings - Fork 413
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
HTML5 validation for the input control #499
Comments
This seems more like a roadmap thing to consider - making validation work with HTML5 elements. We should probably discuss this @exussum12 @powmedia ? |
Agreed, The support for these elements is pretty small currently. This should be supported though as the usage will rise |
I've been using HTML5 validation more and more, it could be a good idea to On Fri, Apr 29, 2016 at 7:59 PM Scott Dutton [email protected]
|
The support is actually very good these days (94% global support): +1 for having an optional polyfill for the remaining browsers |
Numeric input control can be invalid (for example
<input type=number>
with 123....456 text).but validation mechanism returns OK.
It uses
this.$el.val()
which returns empty for invalid control. As a result all validators passed (except required validator). So for optional fields form will be always committed to server with incorrect input.Maybe need to add some checking to verify control state?
something like:
this.$el.is(':invalid')
The text was updated successfully, but these errors were encountered: