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

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

Comments

Projects
None yet
2 participants

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)
Collaborator

domenic commented Oct 5, 2012

Is this still an issue?

Collaborator

domenic commented Oct 10, 2012

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

domenic closed this Oct 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment