Skip to content

space is added after comma in data uris in srcsets #18454

Closed

Description

@riw

Describe the bug

when a data uri of the form 'data:image/svg+xml;utf8,...' is used in srcsets vite adds a space after the comma like 'data:image/svg+xml;utf8, ...'

Reproduction

https://stackblitz.com/edit/vitejs-vite-ykknzg?file=index.html

Steps to reproduce

No response

System Info

System:
    OS: macOS 14.6.1
    CPU: (12) arm64 Apple M2 Max
    Memory: 179.67 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.7.0 - ~/.nvm/versions/node/v20.15.1/bin/npm
    pnpm: 8.6.2 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 130.0.6723.59
    Safari: 17.6
  npmPackages:
    vite: ~6.0.0-beta.2 => 6.0.0-beta.2

Used Package Manager

npm

Logs

No response

Validations

Activity

  1. sapphi-red commented on Oct 25, 2024

    @sapphi-red
    Member

    This is already fixed by #18242. It is released since 6.0.0-beta.3.

  2. locked and limited conversation to collaborators on Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions