deep-selector-polyfill

1.0.0 • Public • Published

deep-selector-polyfill

This polyfill adds the ability to query for elements nested deep in the shadow roots. The polyfill only applies to querySelector and querySelectorAll. The selector has no effect in <style> elements.

Example

document.querySelector('#root /deep/ #nested /deep/ input')

Development

# clone repo 
# install dependencies 
yarn
# start dev server 
yarn start
# access test page 
# http://127.0.0.1:8081/components/deep-selector-polyfill/test/ 

Running tests

Tests are run using Web Component Tester.

yarn test

Package Sidebar

Install

npm i deep-selector-polyfill

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

10.4 kB

Total Files

12

Last publish

Collaborators

  • cristinecula