News for hackers. Stuff that matters.
Re:Forking the Web by singpolyma3 on Saturday May 09, 2026 @09:21AM (#48074774)
To be fair, HTML5 also has a defined parsing algorithm. It just happens to always work on any input to produce a webpage
Re:Forking the Web by masklinn on Saturday May 09, 2026 @12:02PM (#48076011)
I don't get this reply. GP didn't say anything about parsing algorithms, they said (correct) things about hard errors on the web.
Re:Forking the Web by jazzypants on Saturday May 09, 2026 @12:51PM (#48076345)
I thought they were just bolstering the refutation of TFA's assertion that XHTML is strictly better because of its parsing algorithm.
Re:Forking the Web by 112233 on Saturday May 09, 2026 @12:59PM (#48076402)
why for? the reply is about factual historical experience with webpage hard errors.

Would you like to have a law that forbids you, under penalty of fine, to read any book you buy or borrow that is lacking or has damaged pages?

Re:Forking the Web by jerf on Saturday May 09, 2026 @10:05AM (#48075104)
Yes, this is what you'd want. It doesn't have to be a complicated as the HTML5 algorithm either. That's complicated because it was a harmonization of at least 3 browser's multi-decade heuristics and untold terabytes of existing HTML practice. An algorithm unconcerned with backwards compatibility could much simpler, but still clearly define error behavior much easier to use than "scream and die".

And it's still unambiguous. You can cringe at what some people do, but it would be strictly a taste issue rather than a technical one, as the parse would still be unambiguous. And if you think you can fix taste issues with technical specification, well, you've already lost anyhow.

Re:Forking the Web by stavros on Saturday May 09, 2026 @10:01AM (#48075061)
I think the GP has an issue not with the specification part, but with the part where it's forbidden for clients to render a noncompliant page.
Re:Forking the Web by tardedmeme on Saturday May 09, 2026 @03:34PM (#48077570)
It's not forbidden. They just don't render certain noncompliant pages. Namely the ones with gross syntax errors.

Why are we okay with formats like PDF that have similarly catastrophic error handling?

Re:Forking the Web by zbentley on Saturday May 09, 2026 @04:16PM (#48077866)
I mean, we aren’t ok with that for PDF. That’s why PDF renderers have incredibly baroque rules for parsing weirdly or brokenly formatted documents, and why many PDF documents fall back to embedding images or absolute-positioned pixel-like layouts for compatibility purposes.
Re:Forking the Web by stavros on Saturday May 09, 2026 @03:43PM (#48077631)
I mean, the linked page and the comment above say it is:

> It is explicitly forbidden for clients to accept any page that doesn't conform with the specification. This prevents the standardized diabolic rules that one must implement in order to correct a