Nocturnal Pajama Mutants
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

constraint-validation-buggyfill

0.1.1 • Public • Published

Constraint validation buggyfill

Version Github issues Github stars

Prevents invalid form submission in browsers that improperly support the HTML forms spec (i.e. Safari). The first invalid element is focused after alerting the validation message.

Using an alert kind of sucks but Safari doesn't support reportValidity() either.

  • Only operates if the browser fails to prevent an invalid form submission.
  • No DOM updates.
  • Written in ES6.
  • Implements UMD.
  • IE 10+ and modern browser support.
  • MIT license.

Usage

Install via NPM:

npm install constraint-validation-buggyfill --save

At the beginning of your application JS:

import 'constraint-validation-buggyfill'

The module will self-initialize.

See

install

npm i constraint-validation-buggyfill

Downloadsweekly downloads

3

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability