docs: function createElement(value) {
    if (!document) return null;
  
    assertType(value, 'string', true, 'Value must be a string');
  
    if (value.match(/^([a-z0-9]+-)+[a-z0-9]+$/)) {
      return new (getElementRegistry(value))();
    }
    else {
      let div = document.createElement('div');
      if (value.indexOf('<') !== 0 && value.indexOf('>') !== (value.length - 1)) value = `<${value}>`;
      div.innerHTML = value;
      return div.firstChild;
    }
  }