src/js/libs/spiritual-gui.js
function(markup, targetdoc) {
		var elm, doc = this._document ||
			(this._document = document.implementation.createHTMLDocument(""));
		return gui.Guide.suspend(function() {
			doc.body.innerHTML = this._unsanitize(markup);
			elm = doc.querySelector("." + this._classname) || doc.body;
			return Array.map(elm.childNodes, function(node) {
				return (targetdoc || document).importNode(node, true);
			});
		}, this);
	}
function(markup, targetdoc) {
		var elm, doc = this._document ||
			(this._document = document.implementation.createHTMLDocument(""));
		return gui.Guide.suspend(function() {
			doc.body.innerHTML = this._unsanitize(markup);
			elm = doc.querySelector("." + this._classname) || doc.body;
			return Array.map(elm.childNodes, function(node) {
				return (targetdoc || document).importNode(node, true);
			});
		}, this);
	}
function ( markup , targetdoc ) { var elm , doc = this . _document || ( this . _document = document . implementation . createHTMLDocument ( "" ) ) ; return gui . Guide . suspend ( function ( ) { doc . body . innerHTML = this . _unsanitize ( markup ) ; elm = doc . querySelector ( "." + this . _classname ) || doc . body ; return Array . map ( elm . childNodes , function ( node ) { return ( targetdoc || document ) . importNode ( node , true ) ; } ) ; } , this ) ; }
Parse to array of one or more nodes.
@param {String} markup
@param @optional {Document} targetdoc
@returns {Array<Node>}
Parse to array of one or more nodes .