Comments (11)
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.
tap is a devDependency
from html5.
bench is a devDependency
from html5.
opts I'm going to have to look at and refresh my memory
from html5.
I can't find where you do require("jsdom")
...
from html5.
lib/html5/parser.js: jsdom = require('jsdom')
from html5.
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.
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.
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.
Is this issue fixed?
from html5.
I think it is.
from html5.
Related Issues (20)
- Stop overriding `array.last`
- can't load v0.4.0 HOT 6
- 0.3.16: </rt> and </rp> tags break the the tree builder HOT 4
- Lack of documentation. HOT 17
- Improve handler HOT 15
- The combination of contentHandler and lexicalHandler HOT 1
- Next release
- Add CHANGELOG.md HOT 4
- Register html5 on GitFund HOT 3
- jsdom should be a devDependency
- Update NPM module HOT 2
- Can I use this client-side? HOT 10
- SAX support? HOT 2
- LineNumber/ColumnNumber for errors? HOT 1
- Parser should detect "attribute value missing" error HOT 1
- this.lowercase_attr_name in global context HOT 16
- Why require('buffer') and parser._() for? HOT 3
- Why don't you use document.createElement / document.createElementNS ? HOT 4
- Zombie.js broken since 0.3.15 HOT 10
- Performance? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html5.