dom-matches

WebJar for dom-matches

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

dom-matches
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

dom-matches
WebJar for dom-matches
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/necolas/dom-matches

Скачать dom-matches

Как подключить последнюю версию

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

dom-matches

Build Status

Check if a DOM element matches a given selector.

Installation

npm install dom-matches

API

matches(elem, selector)

  • elem: a DOM node.
  • selector: a CSS selector string.
var matches = require('dom-matches');
var elem = document.querySelector('.foo');

matches(elem, '.foo');
// => true

matches(elem, '.bar');
// => false

Browser support

  • Google Chrome
  • Firefox ESR+
  • Internet Explorer 10+
  • Safari 6+
  • Opera

Версии библиотеки

Версия
2.0.0
1.0.1