Kevin 4e25309391 correction && add form && add slide && add masonry && css | vor 4 Jahren | |
---|---|---|
.. | ||
.npmignore | vor 4 Jahren | |
README.md | vor 4 Jahren | |
bower.json | vor 4 Jahren | |
matches-selector.js | vor 4 Jahren | |
package.json | vor 4 Jahren | |
tests.html | vor 4 Jahren | |
tests.js | vor 4 Jahren |
matches
/matchesSelector
is pretty hot :fire:, but has vendor-prefix baggage :handbag: :pouch:. This helper function takes care of that, without polyfilling or augmenting Element.prototype
.
matchesSelector( elem, selector );
// for example
matchesSelector( myElem, 'div.my-hawt-selector' );
Download matches-selector.js
Install with Bower: bower install matches-selector
Install with npm: npm install desandro-matches-selector
IE10+, all modern browsers
Use matchesSelector v1 for IE8 and IE9 support.
matchesSelector is released under the MIT license