createElement() — vue Function Reference
Architecture documentation for the createElement() function in node-ops.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 334cbadd_d5da_35f9_606a_5e0ee6e4d2bf["createElement()"] 4f426213_dc7c_0099_96f8_fd84efdd25a2["node-ops.ts"] 334cbadd_d5da_35f9_606a_5e0ee6e4d2bf -->|defined in| 4f426213_dc7c_0099_96f8_fd84efdd25a2 style 334cbadd_d5da_35f9_606a_5e0ee6e4d2bf 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