Navigate Select ESC Close

The Biggest Lie In HTML

2024-04-16 Science & Technology
112.7k
3.5k
503
Theo - t3․gg
Theo - t3․gg
539.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

I have been angry about self-closing tags for awhile. I now better understand WHY they are so bad, but I still hate it. SOURCE https://github.com/sveltejs/svelte/issues/11052 https://jakearchibald.com/2023/against-self-closing-tags-in-html/ Check out my Twitch, Twitter, Discord more at https://t3.gg S/O Ph4se0n3 for the awesome edit 🙏

Top Comments (10)

@avsaase 2024-04-16

The web is built on a mountain of tech debt.

425 9 replies
@Sammysapphira 2024-04-16

Something about an issue being "Library does the thing it's meant to do completely wrong" is really amusing to me

111
@stephenjames2951 2024-04-17

I went to MDN to see the list of self-closing (which they call Void Elements) and they indicate that the /> is invalid HTML. I clicked on embed, one of these elements and the example had the invalid />. 😂

24
@Malix_Labs 2024-04-16

Enters HTML, the programming language

245 1 replies
@martybando1668 2024-04-16

As someone building it’s 100% the fault of the framework creator. If you’re building a language wrapper it’s YOUR job to fully understand the details, especially the fine ones, of the language that you’re wrapping. It’ll be like building a C++ framework with a pointer object that is actually a reference under the hood.

73 2 replies
@sharkinahat 2024-04-16

<div /> Hello Will always look like an error for me.

371 11 replies
@SchioAlves 2024-04-16

If only we had a tool to show the browser what language version we’re using so it could parse accordingly… you know, like doctype and head meta tags 🙃

53 2 replies
@timseguine2 2024-04-17

I was one of the XHTML proponents. But it had one huge problem on every browser that even supported it (at least it did back in the day): a single syntax error made the browser shit itself and refuse to render anything. But in my opinion they threw the baby out with the bathwater. They could have made HTML5 xml-like and xml compatible while also making it fault tolerant like it is today.

14
@tiedye001 2024-04-16

Theo's "Just never write html" argument misses the point.

52
@m4rt_ 2024-04-16

I handwrite HTML for work. Also, my personal website doesn't use any framework, just handwritten HTML, CSS, and a tiny bit of JS.

57 1 replies

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot