{"id":17034524,"url":"https://github.com/caub/dom-polyfills","last_synced_at":"2025-03-22T22:17:54.710Z","repository":{"id":57214736,"uuid":"89223374","full_name":"caub/dom-polyfills","owner":"caub","description":"polyfills for old browsers DOM api, experimental, consider something more robust like polyfill.io","archived":false,"fork":false,"pushed_at":"2017-05-24T10:55:46.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T22:20:40.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/caub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-24T09:42:03.000Z","updated_at":"2017-07-25T06:07:35.000Z","dependencies_parsed_at":"2022-08-26T13:31:21.771Z","dependency_job_id":null,"html_url":"https://github.com/caub/dom-polyfills","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fdom-polyfills","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fdom-polyfills/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fdom-polyfills/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fdom-polyfills/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caub","download_url":"https://codeload.github.com/caub/dom-polyfills/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245026042,"owners_count":20549073,"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":[],"created_at":"2024-10-14T08:43:51.811Z","updated_at":"2025-03-22T22:17:54.686Z","avatar_url":"https://github.com/caub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DOM polyfills\n\n- fetch\n- URLSearchParams\n- Element#classList\n- Element#dataset\n- Element#matches\n- Element#closest\n\nMust be included after es6-shim (it uses Promises and Map)\n\n### usage:\n\n```js\nif (!Array.hasOwnProperty('from'))\n\taddScript('https://unpkg.com/es6-shim@latest/es6-shim.min.js'); // or use your own server\nif (!window.hasOwnProperty('URLSearchParams'))\n\taddScript('https://unpkg.com/dom-polyfills@latest/polyfills.js');\n\n\nfunction addScript(src) {\n\tvar script = document.createElement('script');\n\tscript.src = src;\n\tdocument.body.appendChild(script);\n}\n```\n\n\ntodo tests","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaub%2Fdom-polyfills","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaub%2Fdom-polyfills","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaub%2Fdom-polyfills/lists"}