- From: Justin Fagnani <notifications@github.com>
- Date: Tue, 19 Mar 2024 09:47:30 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 19 March 2024 16:47:34 UTC
> I do not want to or cannot modify the internal state of the custom element nor its source code to achieve this. This is a case that I strongly believe we should *not* support. Allowing page authors to override private state of components would be akin to asking TC39 to allow outside code to read private fields of classes or internal state of closures. It violates the contract set up by the library author and leads to fragile coupling that can put a undue burden on them. It's fine for a component author to choose to relax encapsulation. It's not fine for someone else to easily break it. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/1053#issuecomment-2007665823 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/1053/2007665823@github.com>
Received on Tuesday, 19 March 2024 16:47:34 UTC