Last active
October 10, 2023 14:32
-
-
Save bdelacretaz/68ec08b099248542ba7a970b5f1d8ede to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// List custom element names registered in the current browser page | |
console.log( | |
[...new Set([].map.call( | |
document.querySelectorAll('*'), | |
el => el.nodeName.toLowerCase())) | |
].filter( | |
customElements.get.bind(customElements) | |
) | |
.sort() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also https://grep.codeconsult.ch/2023/03/28/any-custom-elements-here/