matches-selector

WebJar for matches-selector

License

License

MIT
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

desandro-matches-selector
Last Version

Last Version

2.0.1
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 desandro-matches-selector

How to add to project

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

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.1