createElement() — vue Function Reference
Architecture documentation for the createElement() function in node-ops.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 4789f7e1_944f_79fd_5379_a04584c7b3af["createElement()"] c9a3b1d9_7c77_87ee_417c_f1bb5864d89c["node-ops.ts"] 4789f7e1_944f_79fd_5379_a04584c7b3af -->|defined in| c9a3b1d9_7c77_87ee_417c_f1bb5864d89c style 4789f7e1_944f_79fd_5379_a04584c7b3af fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/platforms/web/runtime/node-ops.ts lines 4–18
export function createElement(tagName: string, vnode: VNode): Element {
const elm = document.createElement(tagName)
if (tagName !== 'select') {
return elm
}
// false or null will remove the attribute but undefined will not
if (
vnode.data &&
vnode.data.attrs &&
vnode.data.attrs.multiple !== undefined
) {
elm.setAttribute('multiple', 'multiple')
}
return elm
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does createElement() do?
createElement() is a function in the vue codebase, defined in src/platforms/web/runtime/node-ops.ts.
Where is createElement() defined?
createElement() is defined in src/platforms/web/runtime/node-ops.ts at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free