- From: Ryosuke Niwa <notifications@github.com>
- Date: Wed, 25 Mar 2020 19:28:05 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 26 March 2020 02:28:18 UTC
> @rniwa > > > attachShadow during custom element constructor returns the declarative Shadow DOM instead of creating one. > > that seems a lot more complicated, `Element.prototype.shadowRoot` getter will return the instance during construction, and return `null` after the construction phase when declarative is closed. Sounds like hazardous for developers. That's not at all what I'm suggesting. I'm suggesting that attachShadow would return the existing declarative shadow root instead of creating a new one. -- 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-604191797
Received on Thursday, 26 March 2020 02:28:18 UTC