Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG file served as application/json #1459

Closed
membranophonist opened this issue Jan 11, 2019 · 1 comment
Closed

SVG file served as application/json #1459

membranophonist opened this issue Jan 11, 2019 · 1 comment

Comments

@membranophonist
Copy link

🐛 bug report

Description of the problem

Attempting to use a single SVG file with multiple symbol elements as a sprite by referencing their unique ID in a fragment identifier. This works perfectly in Firefox 64.0.2 and Chrome 71.0.3578.98. As of version 12.0.2, it's not working in Safari for macOS. From poking around in Safari's web inspector, it looks like the SVG file is being served as application/json rather than image/svg+xml. I'm not sure if that's Safari being wrong or Firefox and Chrome being lenient…

Sprite: /public/sprite.svg
TabIcons: /src/Components/Tabbar/TabIcons.js

Link to sandbox: https://codesandbox.io/s/6vvkw2168w

Your Environment

Software Name/Version
Сodesandbox
Browser Safari 12.0.2
Operating System macOS 10.14.2
@membranophonist
Copy link
Author

I've switched to another method of using SVG. Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant