From: edison Date: Wed, 14 Jan 2026 00:57:29 +0000 (+0800) Subject: fix(compiler-vapor): do not escape quotes in root-level text nodes (#14310) X-Git-Tag: v3.6.0-beta.4~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fc8e4af5d61d69ef82fbee20cf78ada6ec4a99e;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-vapor): do not escape quotes in root-level text nodes (#14310) close #14309 --- diff --git a/packages/compiler-vapor/__tests__/transforms/transformText.spec.ts b/packages/compiler-vapor/__tests__/transforms/transformText.spec.ts index 8af9415e36..8d2ca1fa7f 100644 --- a/packages/compiler-vapor/__tests__/transforms/transformText.spec.ts +++ b/packages/compiler-vapor/__tests__/transforms/transformText.spec.ts @@ -5,13 +5,19 @@ import { transformElement, transformText, transformVBind, + transformVIf, transformVOn, } from '../../src' import { makeCompile } from './_utils' const compileWithTextTransform = makeCompile({ - nodeTransforms: [transformElement, transformChildren, transformText], + nodeTransforms: [ + transformVIf, + transformElement, + transformChildren, + transformText, + ], directiveTransforms: { bind: transformVBind, on: transformVOn, @@ -54,6 +60,35 @@ describe('compiler: text transform', () => { expect([...ir.template.keys()]).not.toContain('