causal-agent / scraper

HTML parsing and querying with CSS selectors
https://docs.rs/scraper
ISC License
1.79k stars 98 forks source link

Dom Nodes closes prematurely on recursion #162

Open afidegnum opened 7 months ago

afidegnum commented 7 months ago

While traversing, the html tags were malformed on both while and for loops.

you can see the example at: the body and other nested tags closed unexpectedly,

https://github.com/SycaPerse/sytags/blob/main/src/bin/sytree.rs

can you please look into it?