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

SSR v-html svg default content => server/client mismatch #6490

Closed
cjblomqvist opened this issue Sep 1, 2017 · 3 comments
Closed

SSR v-html svg default content => server/client mismatch #6490

cjblomqvist opened this issue Sep 1, 2017 · 3 comments

Comments

@cjblomqvist
Copy link

cjblomqvist commented Sep 1, 2017

Version

2.4.2

Reproduction link

http://www.doesntexist.com

Steps to reproduce

<span v-html="svg.logo">Some text</span>

Where svg.logo equals a SVG image

What is expected?

server and client to be equal

What is actually happening?

I get mismatch. Some error mentioning a text node.


When "Some text" is removed, it works fine. Using SSR, "Some text" is not needed, so it's a simple fix to remove it. However, it's a little bit strange it doesn't work and turn into a mismatch.

I unfortunately don't have time to create a proper repro and so forth. If you want to close this issue immediately, then that's fine. The purpose is more to inform you (and others who have the same issue) that this can happen with SSR.

@posva
Copy link
Member

posva commented Sep 1, 2017

Please follow the Issue Reporting Guidelines and provide a minimal JSFiddle or Github repository containing a set of reproducible steps that can lead to the behaviour you described. Make sure to boil down the problem as much as possible. Thanks!

@nickmessing
Copy link
Member

Closing in favor of #6519, I see three potential solutions, need some feedback from core team to figure out which one is the best.

@cjblomqvist
Copy link
Author

Agree #6519 is a much better issue than mine - glad you are picking it up from there!

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

No branches or pull requests

3 participants