Re: [w3c/webcomponents] Expose shadowRoot on element internals (#871)

@rniwa , just to double-check your proposal:

```javascript
#shadowRoot = this.attachShadow({mode: 'closed', returnExistingDeclarativeShadowRoot: true});
```

will return the existing declarative shadow root, *with contents included*.

```javascript
#shadowRoot = this.attachShadow({mode: 'closed'});
```

will instead blow away the existing contents of the shadow root and return an empty root. In both cases, no exception will be thrown if a *declarative* shadow root already exists. However, if there is already an imperatively-created shadow root, these will both throw, as they do today.

Is that right? If so, I think I'm ok with that proposal also.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/871#issuecomment-604746288

Received on Friday, 27 March 2020 00:00:13 UTC