desandro-matches-selector

2.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.2
    254,260
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.2
    254,260
  • 2.0.1
    132
  • 2.0.0
    0
  • 1.0.3
    3,463
  • 1.0.2
    0

Package Sidebar

Install

npm i desandro-matches-selector

Weekly Downloads

257,855

Version

2.0.2

License

MIT

Last publish

Collaborators

  • desandro