Skip to content

Instantly share code, notes, and snippets.

@tmpvar
Forked from mikeal/gist:755612
Created December 26, 2010 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmpvar/755614 to your computer and use it in GitHub Desktop.
Save tmpvar/755614 to your computer and use it in GitHub Desktop.
getdom = function () {
var features =
{ FetchExternalResources : []
, ProcessExternalResources : false
}
, window = jsdom.jsdom(this.dataString, null, {features: features}).createWindow()
;
return window
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment