matches-selector

WebJar for matches-selector

License

License

MIT
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

matches-selector
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

matches-selector
WebJar for matches-selector
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/desandro/matches-selector

Download matches-selector

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/matches-selector/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>matches-selector</artifactId>
    <version>2.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/matches-selector/
implementation 'org.webjars.bower:matches-selector:2.0.2'
// https://jarcasting.com/artifacts/org.webjars.bower/matches-selector/
implementation ("org.webjars.bower:matches-selector:2.0.2")
'org.webjars.bower:matches-selector:jar:2.0.2'
<dependency org="org.webjars.bower" name="matches-selector" rev="2.0.2">
  <artifact name="matches-selector" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='matches-selector', version='2.0.2')
)
libraryDependencies += "org.webjars.bower" % "matches-selector" % "2.0.2"
[org.webjars.bower/matches-selector "2.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Version
2.0.2
1.0.3