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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions