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

I still prefer using well-formed XML when serving HTML, even if it is HTML5 being served as text/html. I like being able to use XML tools when dealing with html, e.g. XPath queries in automated tests, etc..

This obviously does take some effort to get right, and for most people may not be worth the trouble. W3C has some info on this practice here:

http://dev.w3.org/html5/html-xhtml-author-guide/html-xhtml-a...



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

Search: