Home

Awesome

Sizzle

Sizzle packaged for CommonJS.

Usage

var html = '<html>...</html>',
    document = require("htmlparser").parse(html),
    $ = require("sizzle").sizzle(document);

$(".test").forEach(function(el) {
    print(el.innerHTML);
});

Credits

Copyright (c) John Resig. Copyright (c) Dojo Foundation.