Skip to content

Does not handle data urls (inlined images) #1

Description

@rally25rs

Data urls get "sanitized" and have their quotes removed, which makes them invalid. For example

url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="#fff" viewBox="0 0 8 8"></svg>');

Becomes

url(data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg fill=#fff viewBox=0 0 8 8></svg>);

which causes 2 errors;

  1. In Chrome at least (and probably other browsers) data URLs must be surrounded by quotes.
  2. The quotes inside the SVG attributes are removed, which causes the SVG XML to be invalid to most parsers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions