MCPcopy
hub / github.com/MithrilJS/mithril.js / createText

Function createText

render/render.js:62–65  ·  view source on GitHub ↗
(parent, vnode, nextSibling)

Source from the content-addressed store, hash-verified

60 else createComponent(parent, vnode, hooks, ns, nextSibling)
61 }
62 function createText(parent, vnode, nextSibling) {
63 vnode.dom = $doc.createTextNode(vnode.children)
64 insertNode(parent, vnode.dom, nextSibling)
65 }
66 var possibleParents = {caption: "table", thead: "table", tbody: "table", tfoot: "table", tr: "tbody", th: "tr", td: "tr", colgroup: "table", col: "colgroup"}
67 function createHTML(parent, vnode, ns, nextSibling) {
68 var match = vnode.children.match(/^\s*?<(\w+)/im) || []

Callers 1

createNodeFunction · 0.70

Calls 1

insertNodeFunction · 0.70

Tested by

no test coverage detected