applyNS() — vue Function Reference
Architecture documentation for the applyNS() function in create-element.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 15b11929_2d26_eafe_845f_8ec8739a1d33["applyNS()"] 7052be7e_b5c9_7a95_ee8a_73a3c05abcb2["_createElement()"] 7052be7e_b5c9_7a95_ee8a_73a3c05abcb2 -->|calls| 15b11929_2d26_eafe_845f_8ec8739a1d33 style 15b11929_2d26_eafe_845f_8ec8739a1d33 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