Git Product home page Git Product logo

Comments (5)

matthewmueller avatar matthewmueller commented on May 20, 2024

Thanks @ccarollo for your kind words. I'll look into this problem.

In the meantime could you fix the formatting of this issue? It's making everything a link - I think you need to indent the outermost <div>s 4 spaces to kick in the correct formatting.

from cheerio.

ccarollo avatar ccarollo commented on May 20, 2024

I couldn't get the formatting resolved so I went ahead and made a gist. I have update the original issue with the gist url. Hope this helps and thanks for looking into the issue.

from cheerio.

siddMahen avatar siddMahen commented on May 20, 2024

This issue is because of a recursion problem in htmlparser2. I've sent a patch which was accepted, but the current release still doesn't have it. If you would like to fix the issue, go to your nearest ./node_modules folder and navigate to htmlparser's ./lib folder. Then change the 18th line of DomUtils.js from:

childs = filterArray(test, childs, limit);

to

childs = filterArray(test, childs, recurse, limit);

Hope this helps.

from cheerio.

matthewmueller avatar matthewmueller commented on May 20, 2024

@ccarollo Did this get resolved?

from cheerio.

ccarollo avatar ccarollo commented on May 20, 2024

Yes this appears to be resolved. It looks as though the bug in HTMLParser2 was the culprit and since @siddMahen's fix was included in version 2.1.2 of HTMLParser2 all is good. Thanks for everyones help.

from cheerio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.