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

But how will that affect output? I'm not aware of any scenario where HTML attribute order matters.


It shouldn't affect the way a browser renders the HTML. But there are many possible scenarios in which the order is relevant for some other reason.

Suppose you have another system monitoring the web page generated by the above code. Like a cdn or something. That system would think the web page is constantly updated as the code of the HTML page would be different each time it accessed it, leading to lots of redundant work if it has to update caches, check outbound links and so on.


If a caching thing doesn't understand that order of HTML attributes doesn't matter, I don't want to be using that thing.




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

Search: