vox-browser
vox-browser copied to clipboard
It doesn't need all HTML features
You may heard from others, that implementing a full browser engine can and is really much work.
But we don't need so much.
Drew DeVault for example had this idea:
A web browser engine which flagrantly disregards modern web standards, written in C or Rust. No JavaScript, limited CSS. Designed as a library which others can make GUIs et al out of. Like Servo if they gave a shit about making anything other than a testbed for rewriting Firefox.
I think with that as goal, limited CSS, no JS, basic HTML, vbrowser could be maintainable.
No JS = 10%+ websites simply won't work.
But yes, better to start small.
Pretty sure someone has already gotten V8 to work with V if I'm not mistaking. So JavaScript support wouldn't be the hardest thing.
The main things V needs to develop from the ground up is HTML and CSS styling support. Then JavaScript to be able to interact with the DOM.
Indeed, no JS is not an option.
Fortunately, for us V8 takes care of that. It can be easily embedded.
@medvednikov Do you think wee need CSS / HTML engine in V from scratch or use, for example litehtml
justified?
https://github.com/litehtml/litehtml
Right off the bat, there's a problem with litehtml because it's in C++, and V doesn't get along well with C++.
The only real reason for doing a browser in V is to see if a browser can be written in V, not just a wrapper for code in other languages.