docs: function addClass(element, className) {
      if (!hasClassNameProperty(element) || hasClass(element, className)) {
          return;
      }
      element.className = (element.className + ' ' + className).replace(/^\s+|\s+$/g, '');
  }