News for hackers. Stuff that matters.
Re:Postel’s Principle is a Bad Idea by tedunangst on Sunday February 03, 2013 @11:53PM (#5162503)
Writing correct HTML is not significantly harder than writing crappy HTML. Comparing it to latex vs word isn't a good analogy IMO. And wouldn't nontechnical users be using higher level HTML editors anyway? At least some bad HTML comes from lazy developers who should know better, and could have done better with a stricter tool.
Re:Postel’s Principle is a Bad Idea by emn13 on Monday February 04, 2013 @04:40AM (#5163287)
It's not entirely trivial to write out correct HTML. In addition to properly closing tags, you need to deal with optional end tags (many get this wrong), optional start tags, the odd comment syntax, weird exceptionality wrt escaping esp. in script tags, context-dependant validity such as no block-level elements in inline elements (or nested a tags, or tags whose "type" depends on their attributes).

It's obviously easier to write than to read; but it's definitely easy to make a mistake. There's a lot of illogical cruft that's accumulated in HTML; so even a careful implementer might make a mistake (and might not detect it since most other implementations are so liberal).

Re:Postel’s Principle is a Bad Idea by barrkel on Tuesday February 05, 2013 @03:44AM (#5169777)
I'm was talking about the 90s.