docs: function parseAttributes(attrStr) {
      var reAttributes = /([^=<>\"\'\s]+)\s*(?:=\s*["']?([^"']*)["']?)?/g;
      var result = {};
      var match;
  
      if (attrStr) {
          while (match = reAttributes.exec(attrStr)) {
              result[match[1]] = match[2] || true;
          }
      }
  
      return result;
  }