desandro-matches-selector

WebJar for desandro-matches-selector

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

desandro-matches-selector
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

desandro-matches-selector
WebJar for desandro-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.npm/desandro-matches-selector/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>desandro-matches-selector</artifactId>
    <version>2.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/desandro-matches-selector/
implementation 'org.webjars.npm:desandro-matches-selector:2.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/desandro-matches-selector/
implementation ("org.webjars.npm:desandro-matches-selector:2.0.2")
'org.webjars.npm:desandro-matches-selector:jar:2.0.2'
<dependency org="org.webjars.npm" name="desandro-matches-selector" rev="2.0.2">
  <artifact name="desandro-matches-selector" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='desandro-matches-selector', version='2.0.2')
)
libraryDependencies += "org.webjars.npm" % "desandro-matches-selector" % "2.0.2"
[org.webjars.npm/desandro-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
2.0.1
2.0.0
1.0.3