News for hackers. Stuff that matters.
Re:Kosmonaut: web browser from scratch in Rust by qwerty456127 on Saturday August 15, 2020 @03:57PM (#24171866)
> Does anyone think it would make sense to create a drastically simpler set of web standards, so that making web browsers would become much simpler?

Yes, I bloody do!

And by the way there is a less radical alternative option: just give up support for all the legacy features, quirks and redundancies - perhaps this might simplify the code significantly already.

Another fact to keep in mind: there already are Gemini and Gopher.

Re:Kosmonaut: web browser from scratch in Rust by SyneRyder on Saturday August 15, 2020 @04:52PM (#24172299)
And those Gopher browsers can be really tiny. I think both Jaruzel's Gopher Browser For Windows [1] and Phetch [2] are under a megabyte.

Rather than a new web standard or ignoring "legacy", I'd point out that there are even web browsers for the Commodore 64 and Apple II. You don't need to implement every tag, the point of HTML is to ignore tags you don't understand and it should still render. Pages with correct markup are still readable in ancient browsers that don't understand CSS. If your page isn't readable in Lynx and Links, you didn't code it properly.

You can't support every site obviously, but Links [3] has shown you can go a long way by just supporting a subset of web features. The speed when you're not trying to render pixel perfect layouts is astonishing.

[1] http://www.jaruzel.com/gopher/gopher-client-browser-for-wind...

[2] https://github.com/xvxx/phetch

[3] http://links.twibright.com/

Re:Kosmonaut: web browser from scratch in Rust by qwerty456127 on Saturday August 15, 2020 @05:01PM (#24172371)
> the point of HTML is to ignore tags you don't understand and it should still render.

IMHO it could help a lot if a browser could let you configure the way it treat a particular unknown tag: just ignore it with its entire content or treat it like another kind of tag it knows.

Re:Kosmonaut: web browser from scratch in Rust by remram on Saturday August 15, 2020 @08:25PM (#24173683)
I was thinking this. The canvas tag displays its contents if the canvas API is not supported, while the script tag is ignored. This means the browser still has to know about the tag to be able to not-implement it the right way.
Re:Kosmonaut: web browser from scratch in Rust by SyneRyder on Sunday August 16, 2020 @04:09AM (#24176123)
That's a great idea - displaying the contents of a script or a style tag would be a terrible experience. Letting the user configure it would help future-proof the browser too.
Re:Kosmonaut: web browser from scratch in Rust by qwerty456127 on Saturday August 15, 2020 @07:51PM (#24173495)
> If your page isn't readable in Lynx and Links, you didn't code it properly.

Lynx/Links could really use an update (excuse me if they already have it - they didn't the last time I checked). There is nothing hard nor improper in supporting/using most of the HTML5 semantic tags.

Re:Kosmonaut: web browser from scratch in Rust by hliyan on Saturday August 15, 2020 @10:09PM (#24174253)
Gopher would have been great with a facelift.

Another thought: what if browsers develop the ability to render markdown natively (in addition to HTML)?

Re:Kosmonaut: web browser from scratch in Rust by qwerty456127 on Sunday August 16, 2020 @04:03PM (#24180753)
Markdown would need a better specification then. Today we have a number of extended implementations, want even more extensions and most of the implementations won't even handle the trailing double space (soft line break) the way it is meant to.

But indeed I'd love Markdown or something like that (AFAIK AsciiDoc is better) to be everywhere.

I actually evangelize Markdown on daily basis encouraging everybody to use Typora instead of MS/Libre Office in every case when there is no practical reason to use the latter.

Re:Kosmonaut: web browser from scratch in Rust by hliyan on Sunday August 16, 2020 @09:44PM (#24183041)
My biggest regret is that Google Drive not only does not seem to natively support plain text editing, it seems to go out of the way to make it harder. I wish it could be more like Dropbox.