cferdinandi / validate

A lightweight form validation script.
MIT License
230 stars 39 forks source link

Add support for `reportValidity` on `form` elements #36

Closed maniart closed 6 years ago

maniart commented 6 years ago

Adding support for form.reportValidity() as described here.

FloEdelmann commented 6 years ago

I'd suggest using every instead of reduce to make it more readable.

cferdinandi commented 6 years ago

The polyfill for this plugin is tightly scoped to the validity property to keep file size down. As such, this PR is out-of-scope. There are other polyfills that provide broader JS validity support (with a larger footprint).