code: function fragmentToString(frag) {
  	var doc = frag.ownerDocument;
  	var div = doc.createElement('div');
  	for (var i=0; i < frag.childNodes.length; i++) {
  		div.appendChild(frag.childNodes.item(i).cloneNode(true));
  	}
  	return div.innerHTML;
  }
docs: /* only used for debugging