Hacker News new | ask | show | jobs
by WirelessGigabit 1367 days ago
XML-flavored self-closing elements are banished (use <br> instead of <br />)

God I hate that. It just doesn’t make sense. Where is the <br> closed?

1 comments

br is an empty tag and empty tags are self-closing
Doesn’t make sense. What’s wrong with <br />? It’s a hell of a lot easier to parse than having an exception for <br> which is then transformed in <br></br>.