Re: [WICG/webcomponents] `CustomElementRegistry.define()` should return the new custom element (#927)

> Hmm this confuses me. `define()` doesnt create any element, just registers the ability to create custom elements from registry. ... do you mean it should return the constructor?

Yes. The example code makes it clear the proposal is to return the constructor.

> We have proposals / discussions for lazily defining custom elements: #782.

Don't those proposals suggest a new entrypoint for lazy definitions? But to be conservative, sure, maybe resolve #782 first and then do this.

-- 
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/927#issuecomment-846496467

Received on Sunday, 23 May 2021 03:40:12 UTC