jsonml-html.js
function(value) {
		var wrapper = createElement('div');
		wrapper.innerHTML = ''+value;

		// trim extraneous whitespace
		trimWhitespace(wrapper);

		// eliminate wrapper for single nodes
		if (wrapper.childNodes.length === 1) {
			return wrapper.firstChild;
		}

		// create a document fragment to hold elements
		var frag = createElement('');
		while (wrapper.firstChild) {
			frag.appendChild(wrapper.firstChild);
		}
		return frag;
	}
function(value) {
		var wrapper = createElement('div');
		wrapper.innerHTML = ''+value;

		// trim extraneous whitespace
		trimWhitespace(wrapper);

		// eliminate wrapper for single nodes
		if (wrapper.childNodes.length === 1) {
			return wrapper.firstChild;
		}

		// create a document fragment to hold elements
		var frag = createElement('');
		while (wrapper.firstChild) {
			frag.appendChild(wrapper.firstChild);
		}
		return frag;
	}
function ( value ) { var wrapper = createElement ( 'div' ) ; wrapper . innerHTML = '' + value ; // trim extraneous whitespace
 trimWhitespace ( wrapper ) ; // eliminate wrapper for single nodes
 if ( wrapper . childNodes . length === 1 ) { return wrapper . firstChild ; } // create a document fragment to hold elements
 var frag = createElement ( '' ) ; while ( wrapper . firstChild ) { frag . appendChild ( wrapper . firstChild ) ; } return frag ; }
Converts the markup to DOM nodes

@private
@param {string|Markup} value The node
@return {Node}
Converts the markup to DOM nodes