A node.js plugin that brings sizzle and libxmljs together. Currently it passes all relevant sizzle tests when used with an HTML document.
- Node v0.1.102+
- libxmljs v0.4.0+
npm install nquery
To run the tests, go to the project's root directory and run
make testTo run the demo, go to the examples directory and run
node web.jsvar nquery = require('nquery');
var html = '<html><head></head><body><div id="test" class="test">google</div></body></html>';
var $ = nquery.createHtmlDocument(html);
var $divs = $('div.test');
for (var i = 0; i < $divs.length; i++) {
console.log($divs[i].toString());
}