Skip to content

对data协议的支持有bug #668

Closed
Closed
@swiftest0

Description

h5下无法使用data:image/svg+xml,<svg></svg>data:image/svg+xml;base64,
会转为相对路径

未验证全部平台,请确认

源码中只能匹配以下模式,所以xml的svg或base64的svg都不行
const BASE64_RE = /^data:[a-z-]+\/[a-z-]+;base64,/

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions