|
2 年之前 | |
---|---|---|
.. | ||
test | 2 年之前 | |
.npmignore | 2 年之前 | |
LICENSE | 2 年之前 | |
Readme.md | 2 年之前 | |
index.js | 2 年之前 | |
package.json | 2 年之前 |
Check if an element matches a given selector. For use with browserify.
$ npm install matches-selector
var matches = require('matches-selector');
matches(el, 'ul li a');
// => true or false
Tests can be easilly run locally in the browser of your choice, and have passed if it ends with # ok
. They are also run on testling-ci when pushed to the repository:
npm install
npm test
To re-run tests after making changes, just refresh your browser
MIT