From 92b1d9b2ccfd16c5c52298a9c070e24c4c0a19bf Mon Sep 17 00:00:00 2001 From: tycho Date: Fri, 18 Oct 2024 17:36:12 +0800 Subject: [PATCH] fix(runtime-dom): set `text` as an attribute for `a` tags --- packages/runtime-dom/src/patchProp.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/runtime-dom/src/patchProp.ts b/packages/runtime-dom/src/patchProp.ts index b6af89971..c479c2fa2 100644 --- a/packages/runtime-dom/src/patchProp.ts +++ b/packages/runtime-dom/src/patchProp.ts @@ -122,6 +122,11 @@ function shouldSetAsProp( return false } + // #12211 must be set as attribute + if (key === 'text' && el.tagName === 'A') { + return false + } + // #8780 the width or height of embedded tags must be set as attribute if (key === 'width' || key === 'height') { const tag = el.tagName