logoalt Hacker News

bitwizelast Tuesday at 6:15 AM1 replyview on HN

Postel's Law was one of those Great Mistakes of computing, alongside null pointers, fork(2), and well, C in general. Conform to the spec or be in error. If you allow for sloppiness, you create a problem because different implementations will tolerate different kinds of sloppiness, yielding incompatibilities and horrors like "quirks mode".

XHTML tried to rein this in but by then the cat was out of the bag, and every Tom, Dick, and Mary who was trying to learn HTML was used to the mire tolerant behavior.


Replies

Artoooooorlast Tuesday at 10:35 AM

Maybe developers should be held to stricter standards than their users. I can demand developers to close tags they are expected to close. But users should be allowed to provide their document numbers as "12345" "123 45" or "12-34-5" if all these notations are used in their country.