2 ms·
This is a fun learning project, but I don't think it's really a browser except in name. The code seems to implement the behavior someone thinks a browser might
by esprehn 6y ago
This is a fun learning project, but I don't think it's really a browser except in name. The code seems to implement the behavior someone thinks a browser might have, not what the specs actually say.
Ex.
https://github.com/danfragoso/thdwb/blob/655eac96e4faa141cb495930a167d754a7731b66/ketchup/html.go#L110 https://github.com/danfragoso/thdwb/blob/655eac96e4faa141cb4...
That's not an html parser. It's just some code that regexes strings looking for brackets.
Projects like this are good ways to learn and have fun, but they're many years away from being a browser, even if we limit the scope to the specs of say 2012.
Also fwiw, if you're implementing a browser use the web platform tests instead of writing your own:
https://github.com/web-platform-tests/wpt https://github.com/web-platform-tests/wpt