tmpvar/jsdom — Issue #389: jsdom crash: Cannot call method 'appendChild' of null
Author: lbdremy
Created: 2012-01-24 21:09:12+00:00
State: open

documentElement is null because the HTML retrieved does not contain the

tag, so the first time that the appendChild() function is called to append the script tag, the error occurs. I know that's madness but it happens. :S
How do you want to handle this case?

I'm going to attach a test for this issue.