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

Still getting syntax error for <!doctype html> #429

Closed
bisrael opened this issue Apr 2, 2012 · 2 comments
Closed

Still getting syntax error for <!doctype html> #429

bisrael opened this issue Apr 2, 2012 · 2 comments

Comments

@bisrael
Copy link

bisrael commented Apr 2, 2012

Parsing target is http://www.torhead.com/crew-missions/catg/1/

I have a fresh installation of jsdom as of 2 minutes ago.

the relevant parts of my code look like:

jsdom.env({
  html: 'http://www.torhead.com/crew-missions/catg/1/',
  scripts: [mootools],
  done: processPage
});

where mootools is the text of the current mootools core and processPage is just a callback.

i get:

http://www.torhead.com/*:1: SyntaxError: Unexpected token <
<!doctype html>
^
SyntaxError: Unexpected token <
    at C:\Users\Izzy\workspace\gtntrader_server\jsdom\node_modules\contextify\li
b\contextify.js:10:24
    at Object.javascript (C:\Users\Izzy\workspace\gtntrader_server\jsdom\lib\jsd
om\level2\languages\javascript.js:5:14)
    at Object._eval (C:\Users\Izzy\workspace\gtntrader_server\jsdom\lib\jsdom\le
vel2\html.js:1282:46)
    at C:\Users\Izzy\workspace\gtntrader_server\jsdom\lib\jsdom\level2\html.js:4
8:20
    at Object.check (C:\Users\Izzy\workspace\gtntrader_server\jsdom\lib\jsdom\le
vel2\html.js:277:11)
    at C:\Users\Izzy\workspace\gtntrader_server\jsdom\lib\jsdom\level2\html.js:2
95:12
    at success (C:\Users\Izzy\workspace\gtntrader_server\jsdom\lib\jsdom\level2\
html.js:117:11)
    at IncomingMessage.<anonymous> (C:\Users\Izzy\workspace\gtntrader_server\jsd
om\lib\jsdom\level2\html.js:128:9)
    at IncomingMessage.emit (events.js:88:20)
    at HTTPParser.onMessageComplete (http.js:137:23)
@domenic
Copy link
Member

domenic commented Oct 5, 2012

Is this still an issue?

@domenic
Copy link
Member

domenic commented Oct 10, 2012

Closing, let me know if you're still having this problem.

@domenic domenic closed this as completed Oct 10, 2012
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

2 participants