Skip to content

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

Description

@jpolstre

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions