DEV Community

Discussion on: We Should Stop Hating Web Components

Collapse
 
dannyengelman profile image
Danny Engelman • Edited

One point to add.

Web Component technology is older and more used than most people know.

The <video>, <audio>, <textarea>, <input> and many more complex HTML tags
are implemented in each Browser with Web Component technology.

In Chromium you can tell by the user-agent (= tech term for Browser) label on the shadow-root:

Us mortal developers can not access the HTML elements inside user-agent shadow-root.

Also see: javascript.info/shadow-dom

But... that technology was not available to us 3rd party developers

What we now call "Web Components" (Custom Elements API, Templates, shadowDOM)

IS that very same technology available to us all

But we can't access user-agent managed shadowDOM!

So everyone who claims Web Components is young, not yet fleshed out, bare metal, hardly used, technology...

Does not understand how the Browser works.