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

I'm [implementing](https://chromium-review.googlesource.com/c/chromium/src/+/4144367) the idea of adding a temporary slot on `NewTarget` in the Chromium prototype.

Also, when the constructor re-enters (even including @justinfagnani's case), if we make it work like an `AutoReset`, namely, keep the current value before re-entering the constructor (and thus rewriting the slot), and restore the previous value when the re-entered constructor finishes, then we won't be calling `super()` with a wrong definition.

I'm adding a [new WPT](https://chromium-review.googlesource.com/c/chromium/src/+/4144367/7/third_party/blink/web_tests/external/wpt/custom-elements/scoped-registry/constructor-reentry-with-different-definition.tentative.html) in my patch to test these cases, and it seems to be working well.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/969#issuecomment-1378143147
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/969/1378143147@github.com>

Received on Wednesday, 11 January 2023 01:56:06 UTC