component-query
Query the DOM with selector engine fallback support
Last updated 7 years ago by tootallnate .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install component-query 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.3                                ...           latest (7 years ago)

1 Versions

  • 0.0.3                                ...           7 years ago
Downloads
Today 0
This Week 30
This Month 14
Last Day 14
Last Week 139
Last Month 646
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |