{"id":15668839,"url":"https://github.com/jaydenseric/constraint-validation-buggyfill","last_synced_at":"2025-06-25T08:06:17.211Z","repository":{"id":57206276,"uuid":"66201049","full_name":"jaydenseric/constraint-validation-buggyfill","owner":"jaydenseric","description":"Prevents invalid form submission in browsers that improperly support the HTML forms spec (i.e. Safari).","archived":false,"fork":false,"pushed_at":"2019-12-31T08:33:12.000Z","size":17,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-15T12:06:19.554Z","etag":null,"topics":["npm"],"latest_commit_sha":null,"homepage":"https://npm.im/constraint-validation-buggyfill","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaydenseric.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":".github/funding.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"jaydenseric"}},"created_at":"2016-08-21T13:47:41.000Z","updated_at":"2019-12-31T08:32:31.000Z","dependencies_parsed_at":"2022-09-11T05:01:59.246Z","dependency_job_id":null,"html_url":"https://github.com/jaydenseric/constraint-validation-buggyfill","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jaydenseric/constraint-validation-buggyfill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fconstraint-validation-buggyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fconstraint-validation-buggyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fconstraint-validation-buggyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fconstraint-validation-buggyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaydenseric","download_url":"https://codeload.github.com/jaydenseric/constraint-validation-buggyfill/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fconstraint-validation-buggyfill/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261832632,"owners_count":23216495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["npm"],"created_at":"2024-10-03T14:20:16.779Z","updated_at":"2025-06-25T08:06:17.189Z","avatar_url":"https://github.com/jaydenseric.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jaydenseric"],"categories":[],"sub_categories":[],"readme":"# constraint-validation-buggyfill\n\n[![npm version](https://badgen.net/npm/v/constraint-validation-buggyfill)](https://npm.im/constraint-validation-buggyfill) [![CI status](https://github.com/jaydenseric/constraint-validation-buggyfill/workflows/CI/badge.svg)](https://github.com/jaydenseric/constraint-validation-buggyfill/actions)\n\nPrevents 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()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity).\n\n## Setup\n\n### npm setup\n\nTo install from [npm](https://npmjs.com) run:\n\n```sh\nnpm install constraint-validation-buggyfill\n```\n\nAdd this import to components with forms:\n\n```js\nimport 'constraint-validation-buggyfill'\n```\n\n### CDN setup\n\nTo install from [npm](https://npmjs.com) via the [UNPKG CDN](https://unpkg.com), add this script to pages with forms:\n\n```html\n\u003cscript src=\"https://unpkg.com/constraint-validation-buggyfill\"\u003e\u003c/script\u003e\n```\n\n## Support\n\n- Node.js v10+\n- Browsers [`\u003e 0.5%, not dead, IE \u003e= 10, ExplorerMobile \u003e= 10, Firefox \u003e= 4, Chrome \u003e= 10, Safari \u003e= 5, iOS \u003e= 4, Android \u003e= 4, BlackBerry \u003e= 7, KaiOS \u003e= 2.5`](https://browserl.ist/?q=%3E+0.5%25%2C+not+dead%2C+IE+%3E%3D+10%2C+ExplorerMobile+%3E%3D+10%2C+Firefox+%3E%3D+4%2C+Chrome+%3E%3D+10%2C+Safari+%3E%3D+5%2C+iOS+%3E%3D+4%2C+Android+%3E%3D+4%2C+BlackBerry+%3E%3D+7%2C+KaiOS+%3E%3D+2.5)\n\n## See\n\n- [Caniuse: Form validation](http://caniuse.com/#feat=form-validation)\n- [WebKit Bugzilla: Support for interactive validation of form elements](https://bugs.webkit.org/show_bug.cgi?id=28649)\n- [W3C HTML form submission algorithm](https://www.w3.org/TR/html52/sec-forms.html#form-submission-algorithm)\n- [WHATWG HTML form submission algorithm](https://html.spec.whatwg.org/multipage/forms.html#form-submission-algorithm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Fconstraint-validation-buggyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaydenseric%2Fconstraint-validation-buggyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Fconstraint-validation-buggyfill/lists"}