Remy Sharp 5/1/2026

devtools: how to query through the shadow DOM [blog]

Read Original

This article explains the $$$ function in browser devtools, which is used to query through the shadow DOM, allowing developers to access nested elements inside shadow roots. It compares $$$ to the standard $ and $$ functions for querySelector and querySelectorAll, and notes that $$$ also accepts a second argument for context, such as a selected DOM node. A practical example shows how to use it with $0. The article is a quick tip for web developers debugging or styling shadow DOM components.

devtools: how to query through the shadow DOM [blog]

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet