Chrome wasn't built in a day.
We're building a browser when it's supposed to be impossible
131–140 of 349 posts
Re: We're building a browser when it's supposed to be impossible
#132I think adoption and maintenance will be the hardest parts of the project.
From Serenity OS page [0]:
> This is a system by us, for us, based on the things we like.
Re: We're building a browser when it's supposed to be impossible
#133Earlier quoted context omitted.
Firefox has tons and tons of C++ to this day.
Yes, but they are replacing it bit by bit - I mean, they even started Rust for exactly that purpose. So (without being a huge fan of Rust) the decision to start a "greenfield" browser project in a memory-unsafe language is questionable IMHO...
Re: We're building a browser when it's supposed to be impossible
#134Earlier quoted context omitted.
Firefox has tons and tons of C++ to this day.
But would they choose C++ if they were _starting_ today?
So maybe, Jakt will get used as well.
Re: We're building a browser when it's supposed to be impossible
#135Re: We're building a browser when it's supposed to be impossible
#136Earlier quoted context omitted.
All this "quirks mode" stuff is part of the specification, no? It makes it all a bit more complex than it has to be, but I do believe it's specified. I'm not really sure if "you need to be bug-compatible" is still true; it probably was 15 years ago, but Chrome, Firefox, and WebKit tend to be pretty decent these days.
If anything, websites have become way less clean and invalid HTML. I remember people, including myself, putting W3C validator icons on websites. Rarely do I see any these days, because of all the invalid HTML and dynamically created websites. Maybe all the tags are closed nowadays, so maybe at least that. But which elements are used inside which other elements and whether they are semantically appropriately used is a…
The end result is that validation is not that much interesting anymore, because the idea was that valid (X)HTML document should parse the same accross all browsers (which it mostly did, but that did not say much about how it was actually rendered).
Re: We're building a browser when it's supposed to be impossible
#137Earlier quoted context omitted.
https://meiert.com/en/blog/valid-html-2021/ Most sites still don't have valid HTML. EDIT: my link is old. 98% of the top 100 sites had invalid HTML in 2021, in 2022 we've managed to hit 100%, great job everyone! https://meiert.com/en/blog/valid-html-2022/
“Invalid HTML” is completely irrelevant. HTML parsing is defined exhaustively; “parse errors” are purely “you probably made a mistake, but I’ll keep going” indications, and all browsers will do the same thing.
Re: We're building a browser when it's supposed to be impossible
#138The fact there are better specs doesn’t help if a large part of the work is handling things that are outside the spec. You better show every “buggy” page similar to how the major browsers show them or the new browser will be considered defective. That’s the unfortunate reality of web tech (I wish every page with an js error or incorrectky closed tag would be a big fat error message but it isn’t). And that’s still a l…