From d11f17afc4f187a48803494876511cd60e54a639 Mon Sep 17 00:00:00 2001 From: * <8> Date: Thu, 17 Nov 2022 19:59:13 +0800 Subject: [PATCH] Match-id-d6a40aa03d531d32ad15dd1bd23dfdd33ce67423 --- libs/horizon/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/horizon/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts b/libs/horizon/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts index 2fc56869..baa7d19b 100644 --- a/libs/horizon/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts +++ b/libs/horizon/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts @@ -105,6 +105,10 @@ export function updateCommonProp(dom: Element, attrName: string, value: any, isN value = null; } + if (attrName === '') { + return; + } + if (!isNativeTag || propDetails === null) { // 特殊处理svg的属性,把驼峰式的属性名称转成'-' if (getDomTag(dom) === 'svg' || getNamespaceCtx() === NSS.svg) {