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 foreignObject rendering #180

Closed
ssured opened this issue Jul 1, 2015 · 4 comments
Closed

SVG foreignObject rendering #180

ssured opened this issue Jul 1, 2015 · 4 comments
Milestone

Comments

@ssured
Copy link

ssured commented Jul 1, 2015

For me the delivered SVG does not render in a separate window, but when adding xmlns for the HTML elements in a foreignObject it does work.

This snippet does not render TEXT

...
<foreignObject width="131" height="18">
  <div style="display: inline-block; white-space: nowrap;">
    TEXT
  </div>
</foreignObject>
...

This snippet does render TEXT

...
<foreignObject width="131" height="18">
  <div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">
    TEXT
  </div>
</foreignObject>
...
@knsv
Copy link
Collaborator

knsv commented Sep 28, 2015

Hi sorry for the late response!

Is this still an issue?
If so in what browser do you run this?

@ssured
Copy link
Author

ssured commented Sep 28, 2015

I guess Chrome, it is a while ago. You should provide a xmlns when blending various xml based languages

@knsv
Copy link
Collaborator

knsv commented Sep 28, 2015

Sounds like a good idea. Will add it.

Thanks for the input.

@knsv knsv added this to the 0.5.2 milestone Oct 4, 2015
@knsv knsv added the Fixed label Oct 4, 2015
@knsv
Copy link
Collaborator

knsv commented Oct 4, 2015

Fix for this issue was released in mermaid 0.5.2. Will close this now, let me know if you issues still remain.

@knsv knsv closed this as completed Oct 4, 2015
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

2 participants