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

Change MIME media type to image/svg+xml for interactive mode #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pesc
Copy link

@pesc pesc commented Sep 25, 2020

Problem:

text/svg+xml isn't a standard media type at all so I've changed it to image/svg+xml which is defined in the w3 https://www.w3.org/TR/SVG/mimereg.html

Steps to reproduce

Create one in interactive mode:
{{#drawio:Test|interactive}}

Let it display in the browser (FF, Safari doesn't show anything) - Chrome works

Fix

After applying the fix the charts get displayed in FF, Safari and Chrome

text/svg+xml isn't a standard mediatype at all so I've changed it to image/svg+xml which is defined in the w3 https://www.w3.org/TR/SVG/mimereg.html
@slokhorst
Copy link

I can confirm that this fixes display inFirefox.

Reported in the Wikimedia phabricator: https://phabricator.wikimedia.org/T279991

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

Successfully merging this pull request may close these issues.

None yet

2 participants