Skip to content

this-spring/mini-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-browser

make a mini browser

web render

mini-browser render

before js change html

after js change html

run mini browser

run server(Under this directory(server/public/), we usually write HTML, CSS and JS directories):

cd server
npm install
node server.js  

run browser

cd core
npm install
cd yue-gui
node gui.js

book

all md

core

mini broser source code.

Workflow

// 1. req html
this.html = await request(str);
console.log('finish html');
// 2. parser html
this.tree = await this.parserHtml();
// 3. jsparer runtime cssparser
this.parserJSCSS();
// 4. make render tree
this.renderTree = this.makeRenderTree(this.tree);
// 5. css to renderTree
this.cssToRenderTree();
// 6. gui render content

Browser implemented by myself.
Node provides the js runtime.
OpenGL provides GUI rendering.
Parser implemented by Node.

html

test source by myself

src

refer other implemented browser

test-html

other test source

Source

About

make a mini browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published