Skip to content

foo123/matches-selector

 
 

Repository files navigation

matchesSelector helper

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

Install

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

MIT license

matchesSelector is released under the MIT license

About

matchesSelector helper

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 89.2%
  • HTML 10.8%