applyNS() — vue Function Reference
Architecture documentation for the applyNS() function in create-element.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 679b5260_7af4_19de_f858_0b80581df732["applyNS()"] 7716a396_9ff2_1c13_0212_ab7b31aad036["_createElement()"] 7716a396_9ff2_1c13_0212_ab7b31aad036 -->|calls| 679b5260_7af4_19de_f858_0b80581df732 style 679b5260_7af4_19de_f858_0b80581df732 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/vdom/create-element.ts lines 142–160
function applyNS(vnode, ns, force?: boolean) {
vnode.ns = ns
if (vnode.tag === 'foreignObject') {
// use default namespace inside foreignObject
ns = undefined
force = true
}
if (isDef(vnode.children)) {
for (let i = 0, l = vnode.children.length; i < l; i++) {
const child = vnode.children[i]
if (
isDef(child.tag) &&
(isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))
) {
applyNS(child, ns, force)
}
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does applyNS() do?
applyNS() is a function in the vue codebase.
What calls applyNS()?
applyNS() is called by 1 function(s): _createElement.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free