{"_id":"element-matches-polyfill","_rev":"1-9e958e68b895a8af09e26c441279dc26","name":"element-matches-polyfill","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"element-matches-polyfill","version":"1.0.0","description":"Element.matches Polyfill","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mboughaba/element-matches-polyfill.git"},"keywords":["Element","matches","polyfill","mdn","ie","edge"],"author":{"name":"mboughaba"},"license":"MIT","bugs":{"url":"https://github.com/mboughaba/element-matches-polyfill/issues"},"homepage":"https://github.com/mboughaba/element-matches-polyfill#readme","gitHead":"7a4ed1572aa462e42ef218fe672a8cdb139a023f","_id":"element-matches-polyfill@1.0.0","_nodeVersion":"9.4.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-6xnaB9NpWYmSgWP1/njuCanX1nopjVZRvSivd9cX7cfURGdldeT46g+3ph1pfNNiiPvHLjfhUk/8HXQkbcu7ng==","shasum":"3d97b361c9f8101ed1ce8bb450cef874dadda283","tarball":"https://registry.npmjs.org/element-matches-polyfill/-/element-matches-polyfill-1.0.0.tgz","fileCount":4,"unpackedSize":3076,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVMxaCRA9TVsSAnZWagAAkgcP/iVdqpAsXI34xqQf9CAA\ngHlOTX32y/QXzIw5E7G2vXhQ6EOJD5KqXRyrDUiE6h7EYLTiYlwmdOApndSg\nBCs1Bpxj5Bc1YyqI+ujkjhrt/T/haT4+aABMH4uxtWi673cCeaBYP7hLXtPj\nKdjdPO8K6YxMcFfZldIm00+A25tC/cA2HqVhmXJ1/zxSL1xn8hMSOm+OxqCS\niqI06HXgDqpX9TlwW/34gCxPFAB9+zTCvCj/ErssdWYxUvxn6ZKd7wi/lRIq\neJ9c06C1PV2pcWOpIYcJVH5qhfDsT1QqNjkCkrh8dmPUSjcq6FZuqJpiNkyt\nVGFpoZZyTTfKGzOxeWcg6HeDwjknLHf9vRMRXD+n1fg+VksoT9UG9nCQrF7e\nlbBSIa4iJypWvbQHUMrVQ2dsx+H+3va6+FK+DQRME/9399BIAuLmG0Bs7Zmj\nZdlXEBTK2FFxBXmD3nSAXogDe4z5rKJm3tTWK00rV9/WJcntBu96JgUeQPcJ\nkhX5+cnVNVaCCXSMN/PMlw1qDftq3JRNSQ5rRJOHmYvFD9wzsh/eb9A/f/Tl\nsm0k4gBKoPTr5070mm/pCQ8Q1027C4b6f7yzGn4b62X6tCq2uqolNFeNv9Kg\nqjc143cHgxWzD0K9awlOI2cBxXzQ9I8cR3uff+cc9UMw0K2zevyqB0HXaUo1\nyJOZ\r\n=iWBI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICBplApWyBaXgSapU9jONYydyNCNp1fpw5H8Gx7bLP9RAiB7PPpxKbiz0Zmo2ZOR4UjPncr7NrWHJrLA5Hv5Xfj+Sw=="}]},"maintainers":[{"name":"mboughaba","email":"undasight@gmail.com"}],"_npmUser":{"name":"mboughaba","email":"undasight@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/element-matches-polyfill_1.0.0_1549061210200_0.0958693983381953"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-01T22:46:50.200Z","1.0.0":"2019-02-01T22:46:50.301Z","modified":"2022-05-01T01:37:01.241Z"},"maintainers":[{"name":"mboughaba","email":"undasight@gmail.com"}],"description":"Element.matches Polyfill","homepage":"https://github.com/mboughaba/element-matches-polyfill#readme","keywords":["Element","matches","polyfill","mdn","ie","edge"],"repository":{"type":"git","url":"git+https://github.com/mboughaba/element-matches-polyfill.git"},"author":{"name":"mboughaba"},"bugs":{"url":"https://github.com/mboughaba/element-matches-polyfill/issues"},"license":"MIT","readme":"# element-matches-polyfill\nPolyfill for Element.matches\n\nProvides a polyfill for [Element.forEach()](https://developer.mozilla.org/en-US/docs/Web/API/Element/matches) to all Browsers.\n\n## Native support\n\nSee [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/matches) for more information.\n\n## Import\n\n```JavaScript\n// CommonJS\nrequire('element-matches-polyfill');\n\n// ES6 Modules import / Typescript import\nimport 'element-matches-polyfill';\n```\n\n## Usage\n\n```HTML\n<ul id=\"birds\">\n  <li>Orange-winged parrot</li>\n  <li class=\"endangered\">Philippine eagle</li>\n  <li>Great white pelican</li>\n</ul>\n\n<script type=\"text/javascript\">\n  var birds = document.getElementsByTagName('li');\n\n  for (var i = 0; i < birds.length; i++) {\n    if (birds[i].matches('.endangered')) {\n      console.log('The ' + birds[i].textContent + ' is endangered!');\n    }\n  }\n</script>\n```\n","readmeFilename":"README.md"}