docs: function groupByName(attrs) {
              const attributes = new Map()
              for (const node of attrs) {
                  const name = node.key
                  const list =
                      attributes.get(name) ||
                      (() => {
                          const a = []
                          attributes.set(name, a)
                          return a
                      })()
                  list.push(node)
              }
              return attributes
          }