Socket
Socket
Sign inDemoInstall

desandro-matches-selector

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    desandro-matches-selector

matches/matchesSelector helper


Version published
Weekly downloads
250K
decreased by-3.86%
Maintainers
1
Install size
6.30 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 10 Feb 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc