fgnass/domino — Issue #2: ReferenceError: documentOrder is not defined
Author: fgnass
Created: 2012-02-03 09:07:59+00:00
State: open

```
/home/nevermind/experiment/crawler/node_modules/domino/lib/Document.js:527
val.sort(documentOrder);
^
ReferenceError: documentOrder is not defined
at Object.addId (/home/nevermind/experiment/crawler/node_modules/domino/lib/Document.js:527:16)
at root (/home/nevermind/experiment/crawler/node_modules/domino/lib/Document.js:648:29)
at recursivelyRoot (/home/nevermind/experiment/crawler/node_modules/domino/lib/Document.js:667:3)
at Object. (/home/nevermind/experiment/crawler/node_modules/domino/lib/Document.js:491:5)
at HTMLInputElement.insert (/home/nevermind/experiment/crawler/node_modules/domino/lib/Node.js:394:37)
at HTMLFormElement. (/home/nevermind/experiment/crawler/node_modules/domino/lib/Node.js:97:11)
at insertElement (/home/nevermind/experiment/crawler/node_modules/domino/lib/HTMLParser.js:2517:17)
at insertHTMLElement (/home/nevermind/experiment/crawler/node_modules/domino/lib/HTMLParser.js:2500:5)
at in_body_mode (/home/nevermind/experiment/crawler/node_modules/domino/lib/HTMLParser.js:5608:19)
at insertToken (/home/nevermind/experiment/crawler/node_modules/domino/lib/HTMLParser.js:2418:7)
```

Seems that the variable documentOrder doesn't exist anywhere.
After I commented these line it works fine. But the content of object window.location still seems not right…