A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://grep.codeconsult.ch/2023/03/28/any-custom-elements-here/ below:

Any custom HTML elements on this page?

Speaking of Web Components, this script lists the custom elements registered on a browser's current page.

(
[...new Set([].map.call(
document.querySelectorAll('*'),
el => el.nodeName.toLowerCase()))
].filter(
customElements.get.bind(customElements)
)
.sort()
)

You can run it in your browser's JavaScript console to analyze the current page.

That's how you can find for example that the gist page which contains this script uses no less than 28 custom elements - GitHub is serious about Web Compoments!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4