News for hackers. Stuff that matters.
Re:The Web Runs on Tolerance by raincole on Tuesday December 09, 2025 @12:55AM (#46201715)
> that browsers do try their best to render objectively broken markup

And it's a cancerous engineering principle. People say NullPointerException is the one billion error, but (the misuse of) Postel's Law on web frontend is a multi-billion error. Once one mainstream browser decided to "tolerate" an error, websites would start relying on that behavior, making it a permanent feature of web.

If browsers were less tolerant the whole frontend development would be much smoother. The past decade of JavaScript framework farce would have probably never happened.

The proper way to deal with syntax is making better tools: linters, interpreters and compilers that spew clear error messages. Not trying to 'tolerant' errors.

Re:The Web Runs on Tolerance by gldrk on Tuesday December 09, 2025 @01:30AM (#46201891)
Postel’s law allows a degree of forward compatibility. This was important before continuous software updates were practical. User-facing code is the best place to apply it: I want my text editor to highlight invalid source code on a best effort basis, whereas the compiler should promptly bail out.
Re:The Web Runs on Tolerance by tadfisher on Tuesday December 09, 2025 @01:16AM (#46201821)
The tolerance is now precisely specified in the HTML5 parsing algorithm, far from "try their best". This is good, because browsers fail in mostly the same ways as each other, humans do not need a CS degree to handwrite Web content, and your tools can still write perfectly valid HTML5.
Re:The Web Runs on Tolerance by raincole on Tuesday December 09, 2025 @01:24AM (#46201860)
Obviously now things are better than IE5/6 era, but I can't help but think people without CS degree have to hand tweaking HTML because people who with ones failed to design proper tools and abstraction for them.
Re:The Web Runs on Tolerance by pdimitar on Tuesday December 09, 2025 @07:42PM (#46212669)
Typing valid XML does not require even 1% of a CS degre level of skill, come on.

You're overdoing it.