- From: Joe Pea <notifications@github.com>
- Date: Thu, 09 Sep 2021 11:42:26 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 9 September 2021 18:42:38 UTC
I think it would be better that if someone does something fishy, like moving a scoped custom element from a ShadowRoot to the main Document, an error would be thrown (f.e. `DOMException: Scoped custom element does not belong to this Document or ShadowRoot`). I do not think that allowing weird patterns is ideal in general, in any language or system, if it can be avoided. Because using Scoped Custom Element Registries is an opt-in feature, there is no harm / no breaking change in throwing errors for those rare cases, and honestly it will help people out by keeping their programs in states that make sense. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/716#issuecomment-916345851
Received on Thursday, 9 September 2021 18:42:38 UTC