/** * Returns an array of elements with the given IDs, eg. * @example q("main", "foo", "bar") * @result [
, , ] */ var query_ids = function() { var r = []; for ( var i = 0; i < arguments.length; i++ ) { r.push( document.getElementById( arguments[i] ) ); } return r; }; var recreate_doc = function(html) { document = require('jsdom').jsdom(html); window = document.createWindow(); return require(process.cwd() + '/lib/node-jquery').create(window); }; exports.query_ids = query_ids; exports.recreate_doc = recreate_doc;