by timw4mail · 3y ago · 0 comments
I used to do proper XHTML with the correct mime type. I don't anymore, but I like the syntactic ending the closing slash on a void element gives. (I also end my <p> tags, and all the rest)
I really don't understand how the author thinks it is misleading.
<img/> does what you want (which is always one thing) while <picture/> does not.
/ is a false signal, therefore misleading.
It is easier to read in the common case. That's more than enough.
PS - Also a lot of IDEs will flag <picture /> with "missing closing tag" or similar.
An unclosed <picture> doesn't automatically become valid, but at least there's nothing suggesting that it can be done.
PS - VS Code does not. Sublime Text does not.