Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit 00cc899

Browse files
committed
Fixes an issue where IE fibs about support by testing to ensure setCustomValidity is a function
1 parent 294099b commit 00cc899

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

min/jquery.easy-validation.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jquery.easy-validation.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
var supported = {},
4444
input = document.createElement('input');
4545

46+
//IE8 fibs. This test ensures it reports false
47+
if (typeof(input.setCustomValidity) != 'function') {
48+
return FALSE;
49+
}
50+
4651
$.each( props, function( i, prop ){
4752
if ( ! ( 'hasOwnProperty' in input && input.hasOwnProperty( prop ) ) )
4853
{

0 commit comments

Comments
 (0)