- From: Mason Freed <notifications@github.com>
- Date: Thu, 26 Mar 2020 17:00:00 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 27 March 2020 00:00:13 UTC
@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