code: public T attr(String attribute, Object value) {
          setAttribute(attribute, value == null ? null : String.valueOf(value));
          return (T) this;
      }
docs: Sets a custom attribute
  
  @param attribute the attribute name
  @param value     the attribute value
  @return itself for easy chaining