Created
February 16, 2010 03:58
-
-
Save tmpvar/305272 to your computer and use it in GitHub Desktop.
A HUUUUUGE MILESTONE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... other setup | |
doc.innerHTML = '<html><head></head><body><div class="who"></div></body></html>'; | |
var window = { | |
alert : function() { sys.puts(sys.inspect(arguments)); }, | |
document : doc | |
}; | |
window.Sizzle = require("../sizzle/sizzle").sizzleInit(window, doc); | |
var $ = require("./pure").pureInit(window, doc); | |
$("div").autoRender({"who":"Hello Wrrrld"}); | |
sys.puts(doc.innerHTML); | |
/* ... output | |
tmpvar@tmpvar:~/Work/Javascript/jsdom/example/pure$ node run.js | |
<html><head></head><body><div class="who">Hello Wrrrld</div></body></html> | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment