docs: function getChildRegistry(element, findClosest) {
    assert((element === window) || (element instanceof Node) || !element, 'Invalid element specified');
    assertType(findClosest, 'boolean', true, `The parameter 'findClosest', if specified, must be a boolean value`);
  
    if (!element || element === document || element === document.body) element = window;
  
    if (element === window) {
      if (!window.__private__) window.__private__ = {};
      if (window.__private__.childRegistry === undefined) window.__private__.childRegistry = {};
    }
  
    if (element.__private__ && element.__private__.childRegistry) {
      return element.__private__.childRegistry;
    }
    else if (findClosest === true) {
      return getChildRegistry(element.parentNode);
    }
    else {
      return null;
    }
  }