code: function replaceElement(newChild, oldChild) {
  	  if (!is$1.element(oldChild) || !is$1.element(oldChild.parentNode) || !is$1.element(newChild)) {
  	    return null;
  	  }
  
  	  oldChild.parentNode.replaceChild(newChild, oldChild);
  	  return newChild;
  	}
docs: Replace element