docs: function hotswap(currentNode, newNode, ignoreElements) {
      var newNodeType = newNode.nodeType,
        currentNodeType = currentNode.nodeType,
        swapMethod;
  
      if(newNodeType !== currentNodeType) {
        $(currentNode).replaceWith(newNode);
      } else {
        swapMethod = swapMethods[newNodeType] || swapMethods['default'];
        swapMethod(currentNode, newNode, ignoreElements);
      }
    }