Match-id-e9b03e4853962a0a72ef084c175004435c98aec5
This commit is contained in:
parent
14ac0163a1
commit
18ab628b5b
|
@ -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);
|
return dom ? getChildNS(dom.namespaceURI ?? null, dom.nodeName) : getChildNS(parentNS, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue