Cannot add any id or data attr to active_storage/_blob.html.erb

I have the default partial contents:

<figure class="attachment attachment--<%= blob.representable? ? "preview" : "file" %> attachment--<%= blob.filename.extension %>">
  <% if blob.representable? %>
    <%= image_tag blob.representation(resize_to_limit: local_assigns[:in_gallery] ? [ 800, 600 ] : [ 1024, 768 ]) %>
  <% end %>

  <figcaption class="attachment__caption">
    <% if caption = blob.try(:caption) %>
      <%= caption %>
    <% else %>
      <span class="attachment__download hover:underline"><%= link_to blob.filename, rails_blob_path(blob) %></span>
      <span class="attachment__size"><%= number_to_human_size blob.byte_size %></span>
    <% end %>
  </figcaption>
</figure>

Adding id or data-* to any element does not show. Only add class does. Is there a reason for this? Rails version 7.0.6.

Not sure why data-* was not included here. By updating ATTRIBUTES with the attributes I needed, everything now displays. The core team may have their reasons but there should allow everything.