function createElement(type, attributes, text) {
	  // Create a new <element>
	  var element = document.createElement(type); // Set all passed attributes

	  if (is$1.object(attributes)) {
	    setAttributes(element, attributes);
	  } // Add text node


	  if (is$1.string(text)) {
	    element.innerText = text;
	  } // Return built element


	  return element;
	}
function createElement(type, attributes, text) {
	  
	  var element = document.createElement(type); 

	  if (is$1.object(attributes)) {
	    setAttributes(element, attributes);
	  } 


	  if (is$1.string(text)) {
	    element.innerText = text;
	  } 


	  return element;
	}
function createElement ( type , attributes , text ) { // Create a new <element> var element = document . createElement ( type ) ; // Set all passed attributes if ( is$1 . object ( attributes ) ) { setAttributes ( element , attributes ) ; } // Add text node if ( is$1 . string ( text ) ) { element . innerText = text ; } // Return built element return element ; }
Create a DocumentFragment
Create a DocumentFragment