GoSuB Browser Progress, pt18
I've seen a few contributions coming in which makes me very happy. Although one of the problems is that my ever-lasting parser branch gets out of sync with the main branch.
I've updated this branch so it's mergable, but it's far from finished. Hopefully when it is merged, we can actually have more people looking at it to see where things still go wrong.
I was planning on fixing things up in the weekend, but it turns out I could not access the parser code (don't ask). So instead I did some reading up on whatwg and stumbled upon the console API. Since it looked relative simple, I've decided to give it a go and implement it.
Not everything is done though, but I want to check with others with more Rust experience to see if things looks good (enough).
I hope this week is the week I get passed the test-23 obstacle.. the test that still keeps failing because of some issues in the adoption-agency-algoritm. It somehow doesn't parse the nodes correctly, and I'm not finding out why. It's worse than that: i'm not even sure why the nodes are parsed the way they are in side the test.
The example is "<a><p><a>", where the first <a> is closed as soon as <p> is opened, so it should be a sibling of the first <a> in the <body> node. But i just can find this in the algorithm how this should work. My main suspects are the find-furthest-block method and the generate-implied-end-tags function.
I did some printouts of the algorithms and did a step-by-step to check it codewise, but it all looks fine..
About jaytaph
Codemuser extraordinaire
Joined: | March 24, 2023 |
Following: | 2 |
Followers: | 2 |
Posts: | 50 |
Comments: | 3 |
Upvotes: | 4 |
Previous musings
- (1) November 2024
- (1) October 2024
- (1) September 2024
- (1) July 2024
- (2) February 2024
- (3) January 2024
- (3) December 2023
- (4) November 2023
- (5) October 2023
- (10) September 2023
- (8) August 2023
- (1) June 2023
- (1) May 2023
- (4) April 2023
- (5) March 2023