MCPcopy Create free account
hub / github.com/TruthHun/BookStack / createElement$1

Function createElement$1

static/vuejs/vue.common.js:4383–4393  ·  view source on GitHub ↗
(tagName, vnode)

Source from the content-addressed store, hash-verified

4381/* */
4382
4383function createElement$1 (tagName, vnode) {
4384 var elm = document.createElement(tagName);
4385 if (tagName !== 'select') {
4386 return elm
4387 }
4388 // false or null will remove the attribute but undefined will not
4389 if (vnode.data && vnode.data.attrs && vnode.data.attrs.multiple !== undefined) {
4390 elm.setAttribute('multiple', 'multiple');
4391 }
4392 return elm
4393}
4394
4395function createElementNS (namespace, tagName) {
4396 return document.createElementNS(namespaceMap[namespace], tagName)

Callers

nothing calls this directly

Calls 1

setAttributeMethod · 0.45

Tested by

no test coverage detected