- From: Justin Fagnani <notifications@github.com>
- Date: Tue, 07 Mar 2023 09:04:05 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 7 March 2023 17:04:18 UTC
Recursively calling a constructor before `super()` can get individual _instances_ swapped already (new `new` call will be attached to the in-document, currently upgrading instance instead of a new disconnected instance). Since it's already a terrible idea to do, I think it's ok to not continue to not support this for scoped registries. > pretend new Foo("scoped") is being invoked with a scoped registry This isn't a thing in the current proposal. Calling constructors is only supported for the global registry: https://github.com/WICG/webcomponents/blob/gh-pages/proposals/Scoped-Custom-Element-Registries.md#custom-element-constructors -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/969#issuecomment-1458522037 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/969/1458522037@github.com>
Received on Tuesday, 7 March 2023 17:04:18 UTC