- From: Caridy Patiño <notifications@github.com>
- Date: Mon, 17 Aug 2020 08:12:18 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 17 August 2020 15:12:32 UTC
> I wasn't really thinking about subclassing. I was thinking about a custom element with a shadow root that does not prevent "internals" from being attached. @annevk I thought element internals attachment was only possible during the construction phase, in which case, anyone getting a handle on the element after construction should not be able to gain access to the shadow root, unless they subclass it. > I'm not sure how the subclassing scenario would work. How would the subclass get access to the internals/shadow root of the super? If the super doesn't attach the internals, the subclass could just for the purpose of gaining access to the shadow root instance. But since most code uses dot notation, it is already possible for a subclass to trick the super by providing its own implementation of attachShadow, or attachInternals. -- 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-674939835
Received on Monday, 17 August 2020 15:12:32 UTC