Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Allowing the void tags to be unclosed is the lesser evil of the two, I can even accept the argument behind it (they can't have content) even though it complicates the syntax.

The really evil one is to not make <div /> be exactly equivalent to <div></div> which is just batshit crazy. When I want a placeholder tag (to be populated later) I have to write <div></div> which feels completely unnatural,



Seems simple to me, a container element should always have opening and closing tags. An element that will never contain anything is self-closing.

But I admit, I suppose it could only be simple to me.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: