-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
fix(hydration): Use decodeHtml when vnode is of text type #7776
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
base: main
Are you sure you want to change the base?
Conversation
/ecosystem-ci run |
📝 Ran ecosystem CI: Open
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Size ReportBundles
Usages
|
take a closer look at ##7775. |
# Conflicts: # packages/runtime-core/src/hydration.ts
❌ Deploy Preview for vue-next-template-explorer failed.
|
❌ Deploy Preview for vue-sfc-playground failed.
|
# Conflicts: # packages/runtime-core/src/hydration.ts
7be8642
to
9e9e1bf
Compare
`\n - expected on client: ${JSON.stringify(vnode.children)}`, | ||
) | ||
;(node as Text).data = vnode.children as string | ||
let dataContent = (node as Text).data.replace(/[\t\r\n\f ]+/g, '') |
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.
Only \r
or \r\n
would actually cause a mismatch. \t\f
and blank will not
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.
done
# Conflicts: # packages/runtime-core/src/hydration.ts
# Conflicts: # packages/runtime-core/src/hydration.ts
close: #7775
close: #9229