Elektrine lite

← Feed

@nicolaschevobbe@mastodon.social

Post #2981942

2026-02-15 17:09 UTC

@adamhotep@infosec.exchange @blinry@chaos.social $$$ will retrieve éléments in the shadow dom, which is not the case for $$ (see https://firefox-source-docs.mozilla.org/devtools-user/web_console/helpers/ for the full doc)

Replies (1)

  • @blinry@chaos.social 2026-02-15 17:12

    @nicolaschevobbe@mastodon.social @adamhotep@infosec.exchange I also had to look that up, but here's an example where a shadow DOM is used: In MDN's web dev playground, they want to isolate the CSS you write to only act on "your" HTML, not on the entire site. So they put it in a shadow root. So $$ doesn't access the here, but $$$ does!

    Open ##2981943