From 18ab628b5b95d0bc72d1075f6826a100850645f9 Mon Sep 17 00:00:00 2001 From: * <8> Date: Wed, 26 Jan 2022 10:01:52 +0800 Subject: [PATCH] Match-id-e9b03e4853962a0a72ef084c175004435c98aec5 --- libs/horizon/src/dom/DOMOperator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/horizon/src/dom/DOMOperator.ts b/libs/horizon/src/dom/DOMOperator.ts index 71204206..cc023da9 100644 --- a/libs/horizon/src/dom/DOMOperator.ts +++ b/libs/horizon/src/dom/DOMOperator.ts @@ -54,7 +54,7 @@ function getChildNS(parentNS: string | null, tagName: string): string { } // 获取容器 -export function getNSCtx(parentNS: string, type: string, dom: Container | undefined): string { +export function getNSCtx(parentNS: string, type: string, dom?: Container): string { return dom ? getChildNS(dom.namespaceURI ?? null, dom.nodeName) : getChildNS(parentNS, type); }