Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main loop reached on valid html file? #65

Open
nunu6689 opened this issue Jan 28, 2024 · 2 comments
Open

Main loop reached on valid html file? #65

nunu6689 opened this issue Jan 28, 2024 · 2 comments

Comments

@nunu6689
Copy link

nunu6689 commented Jan 28, 2024

Good morning sirs.
Using luajit and vanilla lua. Installed from luarocks.
Parsing with gumbo is fine. But it's ded and not portable on some system.
Tried with various html fixer first but with no success.

Can you look at it sirs. Thank you sirs.

test.zip

@guilhermeg2k
Copy link

you can try just increase the main loop limit size (default is 1000)

local root = htmlparser.parse(htmlstring, 10000)

@nunu6689
Copy link
Author

nunu6689 commented Jan 3, 2025

you can try just increase the main loop limit size (default is 1000)

local root = htmlparser.parse(htmlstring, 10000)

No it's not about the loop limit. Even change to 1mil it's still fail to parse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants