function findRenderContainer(node, rootNode, container) {
  var currentNode = node.parentNode;
  if (!currentNode ||
  node === rootNode ||
  currentNode === rootNode ||
  currentNode === document.body ||
  currentNode === document.documentElement ||
  !(currentNode instanceof Element)) {
    return container ? container : null;
  }
  var newContainerId = currentNode.getAttribute('data-rendered-container-id');
  if (newContainerId) {
    var nextNode = document.querySelector("[data-render-container-id~=\"" + newContainerId + "\"]");
    if (!nextNode) {
      throw Error("Origin node for container with id " + newContainerId + " was not found");
    }
    return findRenderContainer(nextNode, rootNode, nextNode);
  }
  return findRenderContainer(currentNode, rootNode, container);
}
/**
                                                                            * Searches RenderContainer placed in "rootNode" for "node"
                                                                            */
Searches RenderContainer placed in "rootNode" for "node"
Searches RenderContainer placed in " rootNode " for " node "
function findRenderContainer(node, rootNode, container) {
  var currentNode = node.parentNode;
  if (!currentNode ||
  node === rootNode ||
  currentNode === rootNode ||
  currentNode === document.body ||
  currentNode === document.documentElement ||
  !(currentNode instanceof Element)) {
    return container ? container : null;
  }
  var newContainerId = currentNode.getAttribute('data-rendered-container-id');
  if (newContainerId) {
    var nextNode = document.querySelector("[data-render-container-id~=\"" + newContainerId + "\"]");
    if (!nextNode) {
      throw Error("Origin node for container with id " + newContainerId + " was not found");
    }
    return findRenderContainer(nextNode, rootNode, nextNode);
  }
  return findRenderContainer(currentNode, rootNode, container);
}
function findRenderContainer ( node , rootNode , container ) { var currentNode = node . parentNode ; if ( ! currentNode || node === rootNode || currentNode === rootNode || currentNode === document . body || currentNode === document . documentElement || ! ( currentNode instanceof Element ) ) { return container ? container : null ; } var newContainerId = currentNode . getAttribute ( 'data-rendered-container-id' ) ; if ( newContainerId ) { var nextNode = document . querySelector ( "[data-render-container-id~=\"" + newContainerId + "\"]" ) ; if ( ! nextNode ) { throw Error ( "Origin node for container with id " + newContainerId + " was not found" ) ; } return findRenderContainer ( nextNode , rootNode , nextNode ) ; } return findRenderContainer ( currentNode , rootNode , container ) ; }
Searches RenderContainer placed in "rootNode" for "node"
Searches RenderContainer placed in " rootNode " for " node "