JSPM

component-query

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20113
  • Score
    100M100P100Q126844F
  • License MIT

Query the DOM with selector engine fallback support

Package Exports

  • component-query

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (component-query) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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