Re: [WICG/webcomponents] [scoped-registries] Interaction with HTML element's overridden constructor steps (Issue #969)

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