Skip to content

plumelo/deep-selector-polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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