Giter Site home page Giter Site logo

Comments (11)

aredridel avatar aredridel commented on July 20, 2024

jsdom is definitely a dependency. npm can handle this, if it's installed as part of jsdom, npm will see that jsdom is already there. (It only installs sub-dependencies if the versions conflict and it doesn't exist in a parent's node_modules)

from html5.

aredridel avatar aredridel commented on July 20, 2024

tap is a devDependency

from html5.

aredridel avatar aredridel commented on July 20, 2024

bench is a devDependency

from html5.

aredridel avatar aredridel commented on July 20, 2024

opts I'm going to have to look at and refresh my memory

from html5.

domenic avatar domenic commented on July 20, 2024

I can't find where you do require("jsdom")...

from html5.

aredridel avatar aredridel commented on July 20, 2024

lib/html5/parser.js: jsdom = require('jsdom')

from html5.

aredridel avatar aredridel commented on July 20, 2024

html5 parsing inherently requires a DOM (since it re-orders and reparents elements, it's not fully streamable), so I've depended on jsdom explicitly. It could be softened if there was another viable DOM to use, but there's not that I'm aware of. (envjs was crazypants last time I looked)

from html5.

domenic avatar domenic commented on July 20, 2024

Ah, it was hiding in the middle of the file, I see. OK, no problem. In theory a decoupled interface would be nicer, but in practice it doesn't matter, since as you point out there's no other viable DOMs, and npm handles the circularity just fine.

from html5.

aredridel avatar aredridel commented on July 20, 2024

Yeah. It's on the wishlist, and I'm totally open to it the moment there's another DOM someone wants to even attempt using.

from html5.

danyaPostfactum avatar danyaPostfactum commented on July 20, 2024

Is this issue fixed?

from html5.

aredridel avatar aredridel commented on July 20, 2024

I think it is.

from html5.

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.