ce(type, attr, children = null) {
    // console.warn('Call to deprecated this.ce(). Dom elements should be created with templates, not manually with ce.');
    // Create the element.
    const element = document.createElement(type);

    // Add attributes.
    if (attr) {
      this.attr(element, attr);
    }

    // Append the children.
    this.appendChild(element, children);
    return element;
  }
Alias for document.createElement.
@param {string} type - The type of element to create
@param {object} attr - The element attributes to add to the created element.
@param {Various} children - Child elements. Can be a DOM Element, string or array of both.
@returns {HTMLElement} - The created element.