theshock/atomjs — pull request #49 by zhak55 (2014-07-08 16:38:03+00:00)
Title: Update Dom.js

// Creating New Elements
.dom("<div>", {"class": "foo"})
.dom("<div></div>")
.dom("</div>")
// Parsing HTML
.dom( html )
atom.dom("<p><span>Bar</span></p>").find("span")
.appendTo("body");
// <span>Bar</span>

var result = atom.dom( "<p></p><p></p>" );
// returns array with elements "p"
Object.prototype.toString
.call(result.elems[0])
// => "[object HTMLParagraphElement]"