3 ms·
file size? It's not much, but it would still strip some stuff. I'm still bitter that HTML/XML works based off of explicit closing tags (where you can mistakenl
by rtpg 10y ago
file size? It's not much, but it would still strip some stuff.
I'm still bitter that HTML/XML works based off of explicit closing tags (where you can mistakenly close the wrong tag) instead of something like braces.
- TheRealPomax 10y agoUse a build tool (which you should be doing anyway if you hand-write any markup, because you need to validate it) and make it rewrite </> to the relevant closing tag, if necessary... problem solved? (and yes, you'd be free to even leave </> off in many, many places: https://www.w3.org/TR/html5/syntax.html#optional-tags https://www.w3.org/TR/html5/syntax.html#optional-tags). Alternatively, don't use HTML at all. Use pug (formerly "jade") or something and now you're free from all those inconvenient angle brackets.
- lgamero 10y agoAfter using pug, I don't think I can go back to plain HTML. I didn't know how much i hated closing tags.