25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
unknown fe79185e87 ali aslani 1 년 전
..
.npmignore ali aslani 1 년 전
README.md ali aslani 1 년 전
bower.json ali aslani 1 년 전
matches-selector.js ali aslani 1 년 전
package.json ali aslani 1 년 전
tests.html ali aslani 1 년 전
tests.js ali aslani 1 년 전

README.md

matchesSelector helper

matches/matchesSelector is pretty hot 🔥, but has vendor-prefix baggage 👜 👝. 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