-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
Double escaping of ssrNode in style attribute values #11449
Comments
I tried to change this line (https://github.com/vuejs/vue/blob/dev/src/server/optimizing-compiler/modules.js#L109) to return [{ type: RAW, value: ` style=${JSON.stringify(staticStyle.replace(/\n/g, ''))}` }]; It works, but I don't know it whether match expected behavior. |
kamilic
changed the title
Still double escaping of ssrNode in style attribute values
Double escaping of ssrNode in style attribute values
Jun 10, 2020
any reply????? |
any news? |
any reply?? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.6.11
Reproduction link
https://github.com/kamilic/vue/tree/style-attr-escaped
Steps to reproduce
You can add this unit test at
./test/ssr/ssr-string.spec.js
in Vue project.or
clone the library and checkout to
style-attr-escaped
branch and run.result:
What is expected?
No double escaping of ssrNode in style attribute values
What is actually happening?
style attribute will be escaped.
This issues may be related to #7224;
#7224
The text was updated successfully, but these errors were encountered: