DEV Community

Discussion on: What's Actually Wrong with Web Components

Collapse
 
dannyengelman profile image
Danny Engelman • Edited

Source: todomvc.hyoo.ru/

So... your? $mol stuffs a shitload of HTMLUnknownElements in the page,
and you! now claim those are not DOM nodes?

... after adding 3 Todos:

A quick test reveals each Todo adds FOUR DOM nodes to the page...

A TODO application adding ONE <li> adds just ONE DOM node to the page.

Note:

You might as well replace all those _ in your tags with - , and create proper HTMLElement;
known as UNdefined Custom Elements. Doesn't change your application,
but allows for future upgrades to defined Custom Elements using customElements.define

Yes, the whole world blogs about Defined Custom Elements, but UNdefined Custom Elements are fine to use,
So you don't have to abuse HTMLUnknownElement