Skip to content
/ query Public
forked from component/query

Query the DOM with selector engine fallback support

Notifications You must be signed in to change notification settings

cycold/query

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Query the DOM with selector engine fallback support

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 51.0%
  • HTML 31.9%
  • Makefile 17.1%