UNPKG

polyfill-service

Version:
1 lines 1.4 kB
{"aliases":["default","caniuse:matchesselector","blissfuljs"],"browsers":{"ie":"6 - *","chrome":"* - 33","firefox":"* - 33","safari":"4 - 7.0","opera":"* - 20","op_mini":"*","op_mob":"* - 32","android":"* - 4.4.4","bb":"*","ios_chr":"*","ios_saf":"* - 7"},"dependencies":["Element","document.querySelector"],"docs":"https://developer.mozilla.org/en-US/docs/Web/API/Element/matches","spec":"http://dom.spec.whatwg.org/#dom-element-matches","baseDir":"Element/prototype/matches","hasTests":true,"rawSource":"\n// Element.prototype.matches\nElement.prototype.matches = Element.prototype.webkitMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.mozMatchesSelector || function matches(selector) {\n\n\tvar element = this;\n\tvar elements = (element.document || element.ownerDocument).querySelectorAll(selector);\n\tvar index = 0;\n\n\twhile (elements[index] && elements[index] !== element) {\n\t\t++index;\n\t}\n\n\treturn !!elements[index];\n};\n","minSource":"Element.prototype.matches=Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||function(e){for(var t=this,o=(t.document||t.ownerDocument).querySelectorAll(e),r=0;o[r]&&o[r]!==t;)++r;return!!o[r]};","detectSource":"'document' in this && \"matches\" in document.documentElement"}