-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
fix(compiler-core): should set <math>
tag as block to retain MathML namespace after patching
#10891
Conversation
178b2a1
to
6b9f3b7
Compare
Size ReportBundles
Usages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should update
core/packages/compiler-core/src/transforms/hoistStatic.ts
Lines 174 to 179 in fd18ce7
if ( | |
codegenNode.isBlock && | |
node.tag !== 'svg' && | |
node.tag !== 'foreignObject' | |
) { | |
return ConstantTypes.NOT_CONSTANT |
Otherwise the hoistStatic
transform won't behave correctly for math
blocks:
https://deploy-preview-10891--vue-sfc-playground.netlify.app/#eNp9Uk1v1DAQ/SvGlwXRrukHlyqNBKgScAAESFx8Ccls1q2/ZE/SVFH+e8dOdptKVS9R3nszz8/jGfkn77d9B/yKF7EOyiOLgJ0vpVXGu4BsZAF2bGK74AzbUOlGWmlrZyMyE1t2nfS3m6+gtWP/XNDNm807aQsx25ERAQTjdYVAiLFif1aOY26epkIQyqyyvkPWnxrXgL6WnHTJmcgGJJsK96xRkXweSP2vXX1HumoIwAfJZ5MIprKo6rgIZ4uQDIK7X9jzI5v4mK87o4RVORSCvmvOlufE2acu8aytMK58T5xbMap8WNnQL51/AJW1DitUzp4ORjOgeTbKtpQNYUCxR6OPd7tYh21Uv9CXy3AWIfbtInxcCYV4ftI8JHGcEmEKRpOdn0ms3omfcIz0zDvVbm+js7QhY+qWvHbGKw3hp0+2UfIrlpWkVbQF998zh6GDkwNf76G+e4G/jUPiJP8VIELoQfKjhlVoAWf55s8PGsxKpC3pNFW/Iv6G6HSXMs5lnzvbUOxVXU77Le85Tf9vvBkQbDxcKgVNlVOul5x2/8srV3+Ke7G9zH3STnx6BLxXEag=
<math>
tag as block to retain MathML namespace after patching
… namespace after patching (vuejs#10891) Co-authored-by: linzhe141 <linzhe141@qq.com>
close #10855