Settings

Theme

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

2 points by kuba-orlik 2 years ago · 2 comments · 1 min read


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?

jauntywundrkind 2 years 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.

The idea of strong encapsulation & isolation is one of those permissive vs authoritarian things that crops up again and again and again in software. Some people see disorder & chaos encroaching everywhere & control & absolutes are their guiding principles. I take a dim view of closed.

  • kuba-orlikOP 2 years ago

    Thanks! Do you perhaps know of any records of Apple's insistence in this matter?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection