Skip to content

Commit

Permalink
fix backporting of formvalidation.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkettner committed May 19, 2014
1 parent 47efd0e commit de44d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feature-detects/forms-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Modernizr.formvalidationmessage = false;

Modernizr.addTest('formvalidation', function() {
var form = createElement('form');
var form = document.createElement('form');
if ( !('checkValidity' in form) || !('addEventListener' in form) ) {
return false;
}
Expand All @@ -37,7 +37,7 @@
//older opera browsers need a name attribute
form.innerHTML = '<input name="modTest" required><button></button>';

testStyles('#modernizr form{position:absolute;top:-99999em}', function( node ) {
Modernizr.testStyles('#modernizr form{position:absolute;top:-99999em}', function( node ) {
node.appendChild(form);

input = form.getElementsByTagName('input')[0];
Expand Down

0 comments on commit de44d4a

Please sign in to comment.