Sorry. But I use squery inside all the time.
V Cekvenich
1

You can certainly use jQuery inside of a web component if you know what you’re doing and scope your queries to the shadow boundary. That’s not the point of this article. The point I’m trying to get across is that tossing an existing *jQuery plugin* into Shadow DOM will often break things. This might be because the developer is trying to call the initialization code from outside the shadow boundary, or the plugin itself is unaware that it resides in a shadow boundary and tries to use an unscoped $().

Like what you read? Give Rob Dodson a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.