- From: Ryosuke Niwa <notifications@github.com>
- Date: Sat, 06 Jun 2026 14:35:52 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 6 June 2026 21:35:56 UTC
rniwa left a comment (WICG/webcomponents#775)
> I'm working my way through my first app using web components and today was hoping to enumerate the list of custom elements defined in the registry to troubleshoot when/where they are defined.
What is your actual use case? Why do you want to enumerate custom elements?
> Now if I want to do that I have to make a list of all my custom component names and iterate over that list, calling the customElements.get() function on each name to see if it exists.
If you're doing this for some kind of debugging purposes, you can just put a Proxy around registry, right?
```
window.customElements = new Proxy(window.customElements, {...})
```
--
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/775#issuecomment-4640422616
You are receiving this because you are subscribed to this thread.
Message ID: <WICG/webcomponents/issues/775/4640422616@github.com>
Received on Saturday, 6 June 2026 21:35:56 UTC