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

…so it’s XHTML?


Can seem similar, but realize that the parsing rules for HTML are far more complicated than you'd think from this simple example. It is the idea of when tags are automatically closed that is odd, here. Consider how `<li><div>Hello<li>world. How <div/>Does this</li> work?` gets turned into elements.

The common trap many run into is that `<div/>` essentially closes at the next boundary.


Not sure why I got down-voted on my other reply, but basically this.

XML != HTML, not sure what is controversial to say about that.




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

Search: