Hacker News new | ask | show | jobs
by 90s_dev 405 days ago
At that point you're not using HTML anymore, you're just calling html() in a fancy way, and that's the whole point of the complaint, that custom-elements are not good at being plain HTML even though that's like its whole thing.
2 comments

Normal HTML elements don't exclusively use HTML attributes either. Surely you've used button.onclick or element.classList or element.innerHTML?
Being plain HTML is important for the user of the element.

That the element may use a library for its implementation is basically irrelevant.

Hi.