Skip to content

[Proposal] Keep/add xmlns attribute for generated SVG images #23409

Closed
@wxiaoguang

Description

@wxiaoguang

Feature Description

Gitea's SVG files do not have the xmlns attribute. Without it, these SVG images couldn't be display correctly.

  • Browsers (Safari/Chrome/Firefox) only display the XML content, but no the image
  • VSCode shows 0 x 0 broken images
  • macOS Finder show blank page

Then developers couldn't browse these images, they couldn't know what the images look like before rendering them as inline SVG in a page.

So it's better to keep/add the xmlns attribute for the generated SVG files.

https://stackoverflow.com/questions/18467982/are-svg-parameters-such-as-xmlns-and-version-needed

cc @silverwind

Screenshots

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionalitytype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions