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) {