cferdinandi/validate

Check for `type` uses `input` instead of `field`

davidhund opened this issue · 2 comments

validityState-polyfill.js:L19 is currently:

var type = field.getAttribute('type') || input.nodeName.toLowerCase();

.. but should IMO be:

var type = field.getAttribute('type') || field.nodeName.toLowerCase();

Yes! Good catch! I'll get this fixed ASAP.

Looks like I fixed this a while ago and never closed the issue.