News for hackers. Stuff that matters.
Re:Kosmonaut: web browser from scratch in Rust by trollied on Saturday August 15, 2020 @03:05PM (#24171369)
It's a shame that the web/browsers have grown up to be so forgiving of shitty markup that isn't valid.

The experience would be much better for the user if it was all strict, as I suspect things would be faster.

Re:Kosmonaut: web browser from scratch in Rust by ivanche on Saturday August 15, 2020 @03:44PM (#24171719)
Congrats, you just reinvented XHTML :)
Re:Kosmonaut: web browser from scratch in Rust by hinkley on Saturday August 15, 2020 @04:15PM (#24171997)
Mosaic tried to be strict. Netscape was more SGML-like and so it was a slow slide as people said, “well it works in Netscape, so it must be a bug”.

The early authoring tools also generated pure garbage for markup. So if you weren’t forgiving, you lost users.

Pandering works.

Re:Kosmonaut: web browser from scratch in Rust by goto11 on Saturday August 15, 2020 @04:08PM (#24171947)
How would it be better for the user if half the web sites didn't work?

I don't think it would have any observable effect on speed. As far as I know, the bottleneck is not parsing the the html syntax, it is rendering.

Re:Kosmonaut: web browser from scratch in Rust by krapp on Saturday August 15, 2020 @03:44PM (#24171722)
Most HTML is generated by frameworks now, isn't it? Is there a lot of non-matching HTML in the wild anymore?