- From: Ryosuke Niwa <notifications@github.com>
- Date: Tue, 18 Aug 2020 16:03:19 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 18 August 2020 23:03:31 UTC
Regardless of the past discussion about `attachInternals`, it seems problematic that anyone can just call `attachInternals` and gain access to a closed shadow root. In particular, between the time a shadow root is attached and custom element's definition gets loaded (i.e. customElements.define is called), anyone can come in & call `attachInternals`. Now that I'm thinking about this problem more, perhaps the easiest solution is to forbid ElementInternals to be created unless the underlying element's custom element state is "custom". This forces custom element's constructor to be the very first thing to have the ability to call `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-675761078
Received on Tuesday, 18 August 2020 23:03:31 UTC