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 Modernizr#584)
  • Loading branch information
aFarkas committed May 28, 2012
1 parent 5848b2b commit da41692
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 Diff line number Diff line change
@@ -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');
Expand All @@ -35,7 +34,6 @@ Modernizr.addTest('formvalidation', function(){
e.preventDefault();
}
e.stopPropagation();
Modernizr.buggyinteractivevalidation = true;
};

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

0 comments on commit da41692

Please sign in to comment.