Query the DOM with selector engine fallback support
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore Initial commit Mar 14, 2013
History.md Release 0.0.3 Feb 10, 2014
Makefile Initial commit Mar 14, 2013
Readme.md Merge branch 'master' of github.com:component/query Mar 19, 2013
component.json
example.html add example Mar 14, 2013
index.js return exports on exports.engine() Oct 31, 2013
package.json

Readme.md

query

Query the DOM with selector engine fallback support. This abstraction allows all other components that require dom querying to indirectly support old browsers, without explicitly adding support for them.

Installation

$ component install component/query

API

query(selector, [el])

Query selector against the document or el and return a single match.

query('ul > li');
query('ul > li', articles);

query.all(selector, [el])

Query selector against the document or el and return all matches.

query.all('ul > li');
query.all('ul > li', articles);

Fallback engines

Currently supported:

License

MIT