From: daiwei Date: Tue, 20 Jan 2026 02:20:29 +0000 (+0800) Subject: fix(compile-vapor): optimize always close tag on rightmost X-Git-Tag: v3.6.0-beta.4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0db578b1995d934dba9b36f0e6c50ed60e2cae94;p=thirdparty%2Fvuejs%2Fcore.git fix(compile-vapor): optimize always close tag on rightmost --- diff --git a/packages/compiler-vapor/__tests__/__snapshots__/compile.spec.ts.snap b/packages/compiler-vapor/__tests__/__snapshots__/compile.spec.ts.snap index 61f944aac4..4ae24a007f 100644 --- a/packages/compiler-vapor/__tests__/__snapshots__/compile.spec.ts.snap +++ b/packages/compiler-vapor/__tests__/__snapshots__/compile.spec.ts.snap @@ -215,7 +215,7 @@ export function render(_ctx) { exports[`compile > execution order > setInsertionState > next, child and nthChild should be above the setInsertionState 1`] = ` "import { resolveComponent as _resolveComponent, child as _child, next as _next, setInsertionState as _setInsertionState, createComponentWithFallback as _createComponentWithFallback, nthChild as _nthChild, createIf as _createIf, setProp as _setProp, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("
") -const t1 = _template("
", true) +const t1 = _template("
', - '
', + '
', ) + checkAbbr( + '
sibling
', + '
sibling', + '
sibling
', + ) - // select always needs closing tag + // select always needs closing tag unless rightmost checkAbbr( '
', - '
', + '
', ) + checkAbbr( + '
sibling
', + '
sibling', + '
sibling
', + ) - // table always needs closing tag + // table always needs closing tag unless rightmost checkAbbr( '
', - '
', + '
', '
', ) + checkAbbr( + '
sibling
', + '
sibling', + '
sibling
', + ) - // textarea always needs closing tag + // textarea always needs closing tag unless rightmost checkAbbr( '
', - '
', + '
', ) + checkAbbr( + '
sibling
', + '
sibling', + '
sibling
', + ) - // template always needs closing tag + // template always needs closing tag unless rightmost checkAbbr( '
', - '
', + '