Top
Best
New

Posted by todsacerdoti 12/29/2025

You can make up HTML tags(maurycyz.com)
584 points | 190 commentspage 6
wildpeaks 12/29/2025|
Exactly why I banned React from my pipelines years ago, native Web Components + dispatchEvent gives you the modern web without bloat and churn, and Vite for a lightweight HMR thanks to native ES Modules.

Server-side you can use jsdom to polyfill document, it supports Web Components too.

nathias 12/29/2025|
web components are terrible and should not be used for modern development with the exception of very nieche use cases that require sandboxing
wildpeaks 1/2/2026|||
Custom elements are web components, it's literally what the article is about
why-o-why 12/29/2025||
Isn't this the basis for every web framework? E.g., Vue Templates?
ayhanfuat 12/29/2025|
Frameworks generally change those to standart tags at build time. Vue can be used without a build step so it indeed uses custom tags for components in that scenario but it is not very common to use Vue without a build step.
kaichanvong 12/30/2025||
loving it (my tag emoji vanished, the tag is, "Commonly used to represent a --tag, metadata, tag as well as for those various senses of labelling")
nektro 12/29/2025||
the comments here informing us they default to behaving like <span> instead of like <div> is the biggest disappointment of my day so far
gitaarik 12/29/2025||
I think it makes sense that if HTML detects an unknown element that it doesn't give it block styling automatically. Only if you specifically specified it for that type of element.

Inline styling is kind of the default in HTML.

rasso 12/29/2025||
See my other comment: you can set default styles using

:where(:not(:defined)) { display: block }

eviks 12/29/2025||
> Good luck trying to insert something inside of “article-heading” but after “article-quote” on the first try.

You don't need much, but an editor - collapse the sections to get the view as small as in the blog snippet, and then you'll have both opening and closing of the tag you're in highlighted, so you won't miss and won't need any luck

rascul 12/29/2025||
> Good luck trying to insert something inside of “article-heading” but after “article-quote” on the first try.

Indentation can help.

sitzkrieg 12/29/2025||
i'm very curious how screen readers would handle this. what a terrible idea
xigoi 12/29/2025|
Presumably exactly the same as a div/span.
coreyzzp 12/29/2025||
[dead]
T3RMINATED 12/29/2025|
[dead]
More comments...