1.0.0 • Published 5 years ago
deep-selector-polyfill v1.0.0
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
1.0.0
5 years ago