Last active
October 7, 2022 18:04
-
-
Save AScriver/d565be042c500c017e88974025d7e814 to your computer and use it in GitHub Desktop.
Log Custom Elements / Web Components to console
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
console.log( | |
Array.from(document.querySelectorAll('*')) | |
.filter((el) => customElements.get(el.nodeName.toLowerCase()) !== undefined || el.getAttribute("is")) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment