thdwb icon indicating copy to clipboard operation
thdwb copied to clipboard

[Browser] New spec compliant parser

Open danfragoso opened this issue 4 years ago • 3 comments

danfragoso avatar Aug 13 '20 00:08 danfragoso

Hello @danfragoso,

I was looking into maybe doing some work on the existing parser (in master), but then saw this draft. Is what is in master right now going to be replaced? If so I'll refrain from working on anything in that area until the new parser is merged in.

Thanks

Thanson16 avatar May 10 '21 13:05 Thanson16

@Thanson16, To be honest the code for the spec compliant html parser is already on the master branch, and it can be enabled with the following flags:

"experimentalHTML": false, "experimentalLayout": false,

The actual parser is built using regex, and is really tricky to build a html5 compliant parser using regex. The spec compliant one is mostly a wrapper around the golang html5 parser. I'm really short on time to work on this project, it was mostly a way to learn how a web browser works, someone posted this on hacker news recently and it got a little bit of attention. If you really want to work on this codebase, tell me where you want to work and I will open some issues and give you any guidance you need to work on this project. What do you think?

danfragoso avatar May 10 '21 14:05 danfragoso

Ohh, I see.

I can't say I have a ton of free time myself, and only have around a year of experience in software development. So, I don't want you to go out of your way on my behalf or anything - especially if it wasn't really a project you were planning on doing a lot with anyway. But at the same time it looks really cool!

So, if it is something where you'd enjoy getting drive-by contributions from people, not just myself, maybe you could open a few issues with the areas of interest (like you had said), and put something in the README regarding your current status on the project. If I am able to contribute to an area here or there, I'd do so, but it would also open the door to anyone else like me who took an interest to the project and thinks they could do something.

All this as just a humble suggestion. Thank you for your time.

Thanson16 avatar May 11 '21 00:05 Thanson16