News for hackers. Stuff that matters.
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.