Re: [whatwg/dom] Declarative Shadow DOM (#510)

@robdodson Ah I see, so it means that we can now write a renderer that renders an output of a computed shadowRoot on the server and write it as a child of a custom element with a clearly defined tag (either `shadowroot` or `template`) so that it tells the browser that this how it should render the a particular custom-element at that moment (and once JS kicks in, it will eventually update the shadowRoot of that custom-element when the data also updates).

So now I get it when this happens

```
<html>
<head>
</head>
<body>
<custom-a>
  <shadowroot>
     Hello <slot></slot>!
  </shadowroot>
  World
</custom-a>

<custom-a>
  <shadowroot>
     Hi <slot></slot>!
  </shadowroot>
  TJ
</custom-a>
...
```

Because it will pretty much look like

```
<custom-a>
  #shadow-root (open)
     Hello <slot></slot>!
  World
</custom-a>

<custom-a>
  #shadow-root (open)
     Hi <slot></slot>!
  TJ
</custom-a>
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/510#issuecomment-330031867

Received on Sunday, 17 September 2017 09:28:45 UTC