code: function (el, attr) {
          // setting to empty string does same
          el.setAttribute(attr, '');
          // Some browsers won't update UI for boolean attributes unless you
          // set it directly. So we do both
          if (hasBooleanProperty(el, attr)) el[attr] = true;
      }
docs: makes sure attribute (with no content) is added if exists it will be cleared of content