Skip to content

Commit

Permalink
update documentation and remove buggyinteractivevalidation flag (fixe…
Browse files Browse the repository at this point in the history
…s Issue #584)
  • Loading branch information
aFarkas committed May 28, 2012
1 parent 4807a83 commit 92b19ae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions feature-detects/forms-validation.js
Original file line number Original file line Diff line number Diff line change
@@ -1,15 +1,14 @@
// This implementation only tests support for interactive form validation. // This implementation only tests support for interactive form validation.
// To check validation for a specific type or a specific other constraint, // To check validation for a specific type or a specific other constraint,
// the test can be combined: // the test can be combined:
// - Modernizr.inputtypes.numer && Modernizr.interactivevalidation (browser supports rangeOverflow, typeMismatch etc. for type=number) // - Modernizr.inputtypes.numer && Modernizr.formvalidation (browser supports rangeOverflow, typeMismatch etc. for type=number)
// - Modernizr.input.required && Modernizr.interactivevalidation (browser supports valueMissing) // - Modernizr.input.required && Modernizr.formvalidation (browser supports valueMissing)
// //
(function(document, Modernizr){ (function(document, Modernizr){




Modernizr.formvalidationapi = false; Modernizr.formvalidationapi = false;
Modernizr.formvalidationmessage = false; Modernizr.formvalidationmessage = false;
Modernizr.buggyinteractivevalidation = false;


Modernizr.addTest('formvalidation', function(){ Modernizr.addTest('formvalidation', function(){
var form = document.createElement('form'); var form = document.createElement('form');
Expand All @@ -35,7 +34,6 @@ Modernizr.addTest('formvalidation', function(){
e.preventDefault(); e.preventDefault();
} }
e.stopPropagation(); e.stopPropagation();
Modernizr.buggyinteractivevalidation = true;
}; };


// Calling form.submit() doesn't trigger interactive validation, // Calling form.submit() doesn't trigger interactive validation,
Expand Down

0 comments on commit 92b19ae

Please sign in to comment.