What's the downside to using custom (non-registered) elements?

Things like <foo>, <bar> etc just behave like <div> and can be styled based on tag name instead of classes. Is there any downside, really?
1 Reply
Jochem
Jochem4mo ago
it's against spec, so it can cause unexpected behavior there's no guarantee that they will remain "custom" (the correct word would be invalid, btw), and not get implemented with special functionality later others that read your code will have no idea wtf you're doing If you want to use custom elements, that's fine, but follow the guidelines and use the Web Component api
Want results from more Discord servers?
Add your server