Re: [WICG/webcomponents] Lazy Custom Element Definitions (#782)

I would be interested in seeing if we can make the registry an EventTarget. Let it dispatch events in both scenarios: when an unknown element is encountered and when an element is defined. The promise-based APIs could easily be defined as sugar over the event with a filter on tag name. Also, very easy to provide library-specific convenience over top of these APIs. The main thing about this approach is that it seems to enable all the use cases.

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

Message ID: <WICG/webcomponents/issues/782/1524133302@github.com>

Received on Wednesday, 26 April 2023 22:52:34 UTC