vox-browser icon indicating copy to clipboard operation
vox-browser copied to clipboard

It doesn't need all HTML features

Open fossdd opened this issue 3 years ago • 5 comments

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.

fossdd avatar Jul 26 '21 08:07 fossdd

No JS = 10%+ websites simply won't work.

But yes, better to start small.

tomByrer avatar Dec 28 '21 04:12 tomByrer

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.

benstigsen avatar Dec 28 '21 04:12 benstigsen

Indeed, no JS is not an option.

Fortunately, for us V8 takes care of that. It can be easily embedded.

medvednikov avatar Dec 28 '21 04:12 medvednikov

@medvednikov Do you think wee need CSS / HTML engine in V from scratch or use, for example litehtml justified?

https://github.com/litehtml/litehtml

vladimirmyshkovski avatar Jan 09 '22 21:01 vladimirmyshkovski

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.

JalonSolov avatar Jan 10 '22 01:01 JalonSolov