matches-selector
Check if an element matches a given selector.
Installation
$ component install component/matches-selector
Example
var matches = require('matches-selector');
matches(el, 'ul li a');
// => true
License
MIT
Check if an element matches a given selector
Check if an element matches a given selector.
$ component install component/matches-selector
var matches = require('matches-selector');
matches(el, 'ul li a');
// => true
MIT
global.Element
so this code can be safely run inside of non-browser environments (#16, @antialias)require('component-query')
(#15, @ockham)package.json
filequery.all()
not query()
proto.matches