docs: function addToChildRegistry(childRegistry, child, name) {
    assertType(childRegistry, 'object', false, 'Invalid child registry specified');
    assertType(child, [Node, Array], false, 'Invalid child(ren) specified');
    assertType(name, 'string', true, 'Invalid name specified');
  
    let inferredName = getInstanceNameFromElement(child);
  
    if (!inferredName) {
      if ((typeof name !== 'string') || (name === '')) return false;
      setAttribute(child, 'name', name);
    }
    else {
      name = inferredName;
    }
  
    if (childRegistry[name])
      childRegistry[name] = [].concat(childRegistry[name], child);
    else
      childRegistry[name] = child;
  
    return true;
  }