You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm trying to make a web component library that uses a shadow DOM.
I wondered if it was possible to override document.querySelector? Perhaps document.querySelector could be cloned to some other function then your code could call the clone. Then document.querySelector could be overridden to call your deep query selectors?
Then the consumer doesn't have to do anything different from what they're used to?
The text was updated successfully, but these errors were encountered:
So I'm trying to make a web component library that uses a shadow DOM.
I wondered if it was possible to override document.querySelector? Perhaps document.querySelector could be cloned to some other function then your code could call the clone. Then document.querySelector could be overridden to call your deep query selectors?
Then the consumer doesn't have to do anything different from what they're used to?
The text was updated successfully, but these errors were encountered: