Skip to content

Commit 0316d24

Browse files
committed
Detect validation feature with "input" rather than "form"
1 parent 629f7e6 commit 0316d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ var TAG_SELECT = 1;
2121
var TAG_INPUT = 2;
2222

2323
// for now, android support in general is too spotty to support validity
24-
var SUPPORTS_VALIDITY_API = !/android/i.test(window.navigator.userAgent) && !!document.createElement('form').validity;
24+
var SUPPORTS_VALIDITY_API = !/android/i.test(window.navigator.userAgent) && !!document.createElement('input').validity;

0 commit comments

Comments
 (0)