constraint-validation-buggyfill

Prevents invalid form submission in browsers that improperly support the HTML forms spec (i.e. Safari).

Downloads
123
Stars
5
Committers
1

constraint-validation-buggyfill

Prevents invalid form submission in browsers that improperly support the HTML forms spec (e.g. Safari v5 → 10). The first invalid element is focused after alerting the validation message. An alert is used due to poor browser support for reportValidity().

Setup

npm setup

To install from npm run:

npm install constraint-validation-buggyfill

Add this import to components with forms:

import 'constraint-validation-buggyfill'

CDN setup

To install from npm via the UNPKG CDN, add this script to pages with forms:

<script src="https://unpkg.com/constraint-validation-buggyfill"></script>

Support

See

Package Rankings
Top 14.71% on Npmjs.org
Badges
Extracted from project README
npm version CI status