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

It doesn't parse all html documents correctly!!! #223

Open
jpolstre opened this issue Oct 11, 2022 · 3 comments
Open

It doesn't parse all html documents correctly!!! #223

jpolstre opened this issue Oct 11, 2022 · 3 comments

Comments

@jpolstre
Copy link

I spent hours reviewing my code, when I discovered that the error was in your package, here is the code that fails:

strHtml: https://drive.google.com/file/d/1DkO-PzbkTcmTlDgUrYxXsBMNYwxtNUUB/view?usp=sharing

when I do:

 let root =  parse(strHtml);
 let elem = root.querySelector('.contenido');
 console.log(elem); //undefined

I've been using your package for a long time, it seemed to work fine, I ran into this error with this particular document. With other analyzers I had no problems.

node-html-parser version: 6.1.1

@taoqf
Copy link
Owner

taoqf commented Nov 14, 2022

I am so sorry and thanks very much. Sadly, I am not access to google. Is #224 related to this issue?

@milahu
Copy link

milahu commented Aug 17, 2023

@taoqf
Copy link
Owner

taoqf commented Aug 21, 2023

I'm afraid this html file contains some broken html tag like <form>, <li> would cause this issue.

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

No branches or pull requests

3 participants