Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require jsdom and htmlparser not working #8

Open
dsimard opened this issue Dec 19, 2010 · 8 comments
Open

require jsdom and htmlparser not working #8

dsimard opened this issue Dec 19, 2010 · 8 comments

Comments

@dsimard
Copy link

dsimard commented Dec 19, 2010

function Apricot(content,live) {

var dom = require('jsdom-0.1.2/jsdom/level1/core').dom.level1.core;

should be

var dom = require('jsdom/jsdom/level1/core').dom.level1.core;

or

var dom = require('[email protected]/jsdom/level1/core').dom.level1.core;

@jrsinclair
Copy link

I'm also encountering this issue. Please make the recommended changes.

@mikl
Copy link

mikl commented May 6, 2011

Still an issue :(

@krunkosaurus
Copy link

Agreed. Author should try to install this from npm and see if it works our of the box (hint: it doesn't).

@ghost
Copy link

ghost commented May 10, 2011

I've got the same issue. Did somebody find a clue ? Thanks.

@DamonOehlman
Copy link

It's a simple enough fix...

line 6, in apricot.js:

var dom = require('jsdom').dom.level1.core,
     browser = require('jsdom/lib/jsdom/browser/index').windowAugmentation(dom);

Still would be nice if it worked in the npm version though...

@indexzero
Copy link
Contributor

Why not use jsdom.env()?

@DamonOehlman
Copy link

Just having a look at that now - wow :)

https://github.com/tmpvar/jsdom

@jrsinclair
Copy link

It looks like silentrob's pulled in a few commits recently, has anyone tried out the updated versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants