- From: Justin Fagnani <notifications@github.com>
- Date: Wed, 26 Apr 2023 15:35:13 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 26 April 2023 22:35:18 UTC
Re, Events: CustomElementRegistry is not currently an EventTarget, though it could be. But I think events are less ergonomic because you can't specify what tag names you care about, so you have to filter in the event handlers. I would still argue to keep the API consistent with the existing APIs. `whenDefined()` could have been an event that fires when any definition is made, but it's much easier to use in common cases when you can specify the tag name and await the result. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/782#issuecomment-1524122449 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/782/1524122449@github.com>
Received on Wednesday, 26 April 2023 22:35:18 UTC