fgnass/domino — pull request #35 by cspotcode (2013-07-03 21:33:11+00:00)
Title: Fixes #34: createTextNode now coerces argument into a string

Two commits: a test and a fix. Let me know if anything needs to be tweaked.

---

For what it's worth, I really like domino for doing HTML document manipulation in Node with jQuery. And it seems to work with very little effort.

```
var jquerySourceCode = fs.readFileSync('jquery-2.0.3.js', 'utf-8');
var window = require('domino').createWindow('');
(new Function(['window'], jquerySourceCode))(window);
var $ = window.$;
// Use jQuery!
```

Many people complain about the pain of setting up jsdom for use with jQuery or Zepto, but for everything I do domino works really well.