TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What is the purpose of Closed Mode shadowRoot?

2 pointsby kuba-orlikabout 1 year ago
I've seen reports of it being used for ads that are very hard to block. This article's (https://blog.ankursundara.com/shadow-dom/) author struggles to find a genuine use case for that closed mode. Is it known what was the intention for adding it to the web platform?

1 comment

jauntywundrkindabout 1 year ago
Apple insisted on it. I forget their reasoning but they were basically boycotting webcomponents entirely. Adding a closed mode was a consession to make WebComponents happen.<p>The idea of strong encapsulation &amp; isolation is one of those permissive vs authoritarian things that crops up again and again and again in software. Some people see disorder &amp; chaos encroaching everywhere &amp; control &amp; absolutes are their guiding principles. I take a dim view of closed.
评论 #39661720 未加载