Kevin 08b0754135 grid programme 4 jaren geleden
..
.npmignore 08b0754135 grid programme 4 jaren geleden
README.md 08b0754135 grid programme 4 jaren geleden
bower.json 08b0754135 grid programme 4 jaren geleden
matches-selector.js 08b0754135 grid programme 4 jaren geleden
package.json 08b0754135 grid programme 4 jaren geleden
tests.html 08b0754135 grid programme 4 jaren geleden
tests.js 08b0754135 grid programme 4 jaren geleden

README.md

matchesSelector helper

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' );

Install

Download matches-selector.js

Install with Bower: bower install matches-selector

Install with npm: npm install desandro-matches-selector

Browser support

IE10+, all modern browsers

Use matchesSelector v1 for IE8 and IE9 support.

MIT license

matchesSelector is released under the MIT license