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

> @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