Bachir Soussi Chiadmi 2abb12981c first round of dev | 9 anni fa | |
---|---|---|
.. | ||
.bower.json | 9 anni fa | |
README.md | 9 anni fa | |
bower.json | 9 anni fa | |
matches-selector.js | 9 anni fa |
matches
/matchesSelector
is pretty hot :fire:, but has vendor-prefix baggage :handbag: :pouch:. This helper function takes care of that, without augmenting Element.prototype
.
matchesSelector( elem, selector );
matchesSelector( myElem, 'div.my-hawt-selector' );
// this DOES NOT polyfill myElem.matchesSelector
Download matches-selector.js
Install with Bower: bower install matches-selector
Install with npm: npm install desandro-matches-selector
Install with Component: component install desandro/matches-selector
matchesSelector is released under the MIT license