tmpvar/jsdom — Issue #407: jsdom.jsdom broken in 0.2.11?
Author: papandreou
Created: 2012-02-23 19:33:12+00:00
State: open

When I tried upgrading assetgraph to use 0.2.11, the test suite went bonkers. Looks like `jsdom.jsdom` is broken:

andreas@ubuntu:~$ npm install jsdom@0.2.11
[....]
jsdom@0.2.11 ./node_modules/jsdom
├── htmlparser@1.7.4
├── cssom@0.2.3
└── contextify@0.1.0
andreas@ubuntu:~$ node
> require('jsdom').jsdom('').outerHTML;
''
> require('jsdom').jsdom('

').firstChild;
null
> andreas@ubuntu:~$

It worked fine in 0.2.10:

andreas@ubuntu:~$ npm install jsdom@0.2.10
[....]
jsdom@0.2.10 ./node_modules/jsdom
├── contextify@0.0.7
├── cssom@0.2.3
└── htmlparser@1.7.4
andreas@ubuntu:~$ node
> require('jsdom').jsdom('').outerHTML;
'\n'

What gives?