Skip to content
Browse files

update documentation and remove buggyinteractivevalidation flag (fixe…

…s Issue #584)
  • Loading branch information...
1 parent 4807a83 commit 92b19ae408b70bb276aaec4a120543f9470a5fdd @aFarkas aFarkas committed
Showing with 2 additions and 4 deletions.
  1. +2 −4 feature-detects/forms-validation.js
View
6 feature-detects/forms-validation.js
@@ -1,15 +1,14 @@
// This implementation only tests support for interactive form validation.
// To check validation for a specific type or a specific other constraint,
// the test can be combined:
-// - Modernizr.inputtypes.numer && Modernizr.interactivevalidation (browser supports rangeOverflow, typeMismatch etc. for type=number)
-// - Modernizr.input.required && Modernizr.interactivevalidation (browser supports valueMissing)
+// - Modernizr.inputtypes.numer && Modernizr.formvalidation (browser supports rangeOverflow, typeMismatch etc. for type=number)
+// - Modernizr.input.required && Modernizr.formvalidation (browser supports valueMissing)
//
(function(document, Modernizr){
Modernizr.formvalidationapi = false;
Modernizr.formvalidationmessage = false;
-Modernizr.buggyinteractivevalidation = false;
Modernizr.addTest('formvalidation', function(){
var form = document.createElement('form');
@@ -35,7 +34,6 @@ Modernizr.addTest('formvalidation', function(){
e.preventDefault();
}
e.stopPropagation();
- Modernizr.buggyinteractivevalidation = true;
};
// Calling form.submit() doesn't trigger interactive validation,

0 comments on commit 92b19ae

Please sign in to comment.
Something went wrong with that request. Please try again.